Skip to content

Commit

Permalink
feat(list): Add disabled class name to constants (#4558)
Browse files Browse the repository at this point in the history
  • Loading branch information
abhiomkar authored Apr 2, 2019
1 parent 5a6c244 commit f2db177
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/mdc-list/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
const cssClasses = {
LIST_ITEM_ACTIVATED_CLASS: 'mdc-list-item--activated',
LIST_ITEM_CLASS: 'mdc-list-item',
LIST_ITEM_DISABLED_CLASS: 'mdc-list-item--disabled',
LIST_ITEM_SELECTED_CLASS: 'mdc-list-item--selected',
ROOT: 'mdc-list',
};
Expand All @@ -44,7 +45,7 @@ const strings = {
.${cssClasses.LIST_ITEM_CLASS} button:not(:disabled),
.${cssClasses.LIST_ITEM_CLASS} a
`,
ENABLED_ITEMS_SELECTOR: '.mdc-list-item:not(.mdc-list-item--disabled)',
ENABLED_ITEMS_SELECTOR: `.${cssClasses.LIST_ITEM_CLASS}:not(.${cssClasses.LIST_ITEM_DISABLED_CLASS})`,
FOCUSABLE_CHILD_ELEMENTS: `
.${cssClasses.LIST_ITEM_CLASS} button:not(:disabled),
.${cssClasses.LIST_ITEM_CLASS} a,
Expand Down

0 comments on commit f2db177

Please sign in to comment.