feat(list,menu): add css shadow parts to sub components

PiperOrigin-RevId: 553896396
This commit is contained in:
Elliott Marquez 2023-08-04 13:25:03 -07:00 committed by Copybara-Service
parent 09cb6da8fb
commit 65d04a3cf3
2 changed files with 7 additions and 2 deletions

View File

@ -173,7 +173,11 @@ export class ListItemEl extends LitElement implements ListItem {
* Handles rendering of the ripple element.
*/
protected renderRipple(): TemplateResult|typeof nothing {
return html`<md-ripple for="item" ?disabled=${this.disabled}></md-ripple>`;
return html`
<md-ripple
part="ripple"
for="item"
?disabled=${this.disabled}></md-ripple>`;
}
/**

View File

@ -265,6 +265,7 @@ export abstract class Menu extends LitElement {
const {ariaLabel} = this as ARIAMixinStrict;
return html`
<md-list
part="list"
id="list"
aria-label=${ariaLabel || nothing}
type=${this.type}
@ -291,7 +292,7 @@ export abstract class Menu extends LitElement {
* Renders the elevation component.
*/
private renderElevation() {
return html`<md-elevation></md-elevation>`;
return html`<md-elevation part="elevation"></md-elevation>`;
}
/**