From f2db1770d3a9a96968b565e13bab6ad376f0324b Mon Sep 17 00:00:00 2001 From: Abhinay Omkar Date: Tue, 2 Apr 2019 11:30:18 -0400 Subject: [PATCH] feat(list): Add disabled class name to constants (#4558) --- packages/mdc-list/constants.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/mdc-list/constants.ts b/packages/mdc-list/constants.ts index c1b49ecb5eb..8d7c317196b 100644 --- a/packages/mdc-list/constants.ts +++ b/packages/mdc-list/constants.ts @@ -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', }; @@ -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,