mirror of
https://github.com/material-components/material-web.git
synced 2024-09-19 09:37:36 +03:00
feat(list,menu): add css shadow parts to sub components
PiperOrigin-RevId: 553896396
This commit is contained in:
parent
09cb6da8fb
commit
65d04a3cf3
@ -173,7 +173,11 @@ export class ListItemEl extends LitElement implements ListItem {
|
|||||||
* Handles rendering of the ripple element.
|
* Handles rendering of the ripple element.
|
||||||
*/
|
*/
|
||||||
protected renderRipple(): TemplateResult|typeof nothing {
|
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>`;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -265,6 +265,7 @@ export abstract class Menu extends LitElement {
|
|||||||
const {ariaLabel} = this as ARIAMixinStrict;
|
const {ariaLabel} = this as ARIAMixinStrict;
|
||||||
return html`
|
return html`
|
||||||
<md-list
|
<md-list
|
||||||
|
part="list"
|
||||||
id="list"
|
id="list"
|
||||||
aria-label=${ariaLabel || nothing}
|
aria-label=${ariaLabel || nothing}
|
||||||
type=${this.type}
|
type=${this.type}
|
||||||
@ -291,7 +292,7 @@ export abstract class Menu extends LitElement {
|
|||||||
* Renders the elevation component.
|
* Renders the elevation component.
|
||||||
*/
|
*/
|
||||||
private renderElevation() {
|
private renderElevation() {
|
||||||
return html`<md-elevation></md-elevation>`;
|
return html`<md-elevation part="elevation"></md-elevation>`;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user