Skip to content

Commit

Permalink
chore(list): merge HCM styles
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 570480882
  • Loading branch information
asyncLiz authored and copybara-github committed Oct 3, 2023
1 parent d6f7220 commit c72927b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 21 deletions.
11 changes: 11 additions & 0 deletions list/internal/listitem/_list-item.scss
Original file line number Diff line number Diff line change
Expand Up @@ -143,4 +143,15 @@
[slot='end'] {
color: map.get($tokens, 'trailing-icon-color');
}

@media (forced-colors: active) {
.disabled slot {
color: GrayText;
}

.list-item.disabled {
color: GrayText;
opacity: 1;
}
}
}
19 changes: 0 additions & 19 deletions list/internal/listitem/forced-colors-styles.scss

This file was deleted.

3 changes: 1 addition & 2 deletions list/list-item.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

import {customElement} from 'lit/decorators.js';

import {styles as forcedColors} from './internal/listitem/forced-colors-styles.css.js';
import {ListItemEl as ListItem} from './internal/listitem/list-item.js';
import {styles} from './internal/listitem/list-item-styles.css.js';

Expand Down Expand Up @@ -66,5 +65,5 @@ declare global {
*/
@customElement('md-list-item')
export class MdListItem extends ListItem {
static override styles = [styles, forcedColors];
static override styles = [styles];
}

0 comments on commit c72927b

Please sign in to comment.