Skip to content

Commit

Permalink
fix(list): remove internal md3-* class prefix
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 559909180
  • Loading branch information
AndrewJakubowicz authored and copybara-github committed Aug 24, 2023
1 parent 0711f8c commit 641142d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
5 changes: 1 addition & 4 deletions list/internal/_list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -42,7 +39,7 @@
display: flex;
}

.md3-list {
.list {
background-color: var(--_container-color);
border-radius: inherit;
display: block;
Expand Down
4 changes: 2 additions & 2 deletions list/internal/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -77,7 +77,7 @@ export class List extends LitElement {
// Needed for closure conformance
const {ariaLabel} = this as ARIAMixinStrict;
return html`
<ul class="md3-list"
<ul class="list"
aria-label=${ariaLabel || nothing}
tabindex=${this.listTabIndex}
role=${this.type || nothing}
Expand Down

0 comments on commit 641142d

Please sign in to comment.