diff --git a/src/components/ha-md-list-item.ts b/src/components/ha-md-list-item.ts index 2440c57805..f897b1d4d5 100644 --- a/src/components/ha-md-list-item.ts +++ b/src/components/ha-md-list-item.ts @@ -1,7 +1,8 @@ import { ListItemEl } from "@material/web/list/internal/listitem/list-item"; import { styles } from "@material/web/list/internal/listitem/list-item-styles"; -import { css } from "lit"; +import { css, html, nothing, type TemplateResult } from "lit"; import { customElement } from "lit/decorators"; +import "./ha-ripple"; export const haMdListStyles = [ styles, @@ -25,6 +26,18 @@ export const haMdListStyles = [ @customElement("ha-md-list-item") export class HaMdListItem extends ListItemEl { static override styles = haMdListStyles; + + protected renderRipple(): TemplateResult | typeof nothing { + if (this.type === "text") { + return nothing; + } + + return html``; + } } declare global {