Skip to content

Commit

Permalink
feat(list,menu): add css shadow parts to sub components
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 553896396
  • Loading branch information
e111077 authored and Copybara-Service committed Aug 4, 2023
1 parent 09cb6da commit 65d04a3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion list/internal/listitem/list-item.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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>`;
}

/**
Expand Down
3 changes: 2 additions & 1 deletion menu/internal/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand All @@ -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>`;
}

/**
Expand Down

0 comments on commit 65d04a3

Please sign in to comment.