From 641142dff0fa679754a6f26518e9db7eccf5f6f5 Mon Sep 17 00:00:00 2001 From: Andrew Jakubowicz Date: Thu, 24 Aug 2023 16:46:15 -0700 Subject: [PATCH] fix(list): remove internal md3-* class prefix PiperOrigin-RevId: 559909180 --- list/internal/_list.scss | 5 +---- list/internal/list.ts | 4 ++-- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/list/internal/_list.scss b/list/internal/_list.scss index bfc65aa78a..cf931ae6f7 100644 --- a/list/internal/_list.scss +++ b/list/internal/_list.scss @@ -3,9 +3,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// stylelint-disable selector-class-pattern -- -// Selector '.md3-*' should only be used in this project. - // go/keep-sorted start @use 'sass:list'; @use 'sass:map'; @@ -42,7 +39,7 @@ display: flex; } - .md3-list { + .list { background-color: var(--_container-color); border-radius: inherit; display: block; diff --git a/list/internal/list.ts b/list/internal/list.ts index 7d5d288293..ce850c8a05 100644 --- a/list/internal/list.ts +++ b/list/internal/list.ts @@ -53,7 +53,7 @@ export class List extends LitElement { */ @property({type: Number, attribute: 'list-tabindex'}) listTabIndex = 0; - @query('.md3-list') private listRoot!: HTMLElement|null; + @query('.list') private listRoot!: HTMLElement|null; /** * An array of activatable and disableable list items. Queries every assigned @@ -77,7 +77,7 @@ export class List extends LitElement { // Needed for closure conformance const {ariaLabel} = this as ARIAMixinStrict; return html` -