File tree Expand file tree Collapse file tree 3 files changed +6
-11
lines changed
polaris-react/src/components/Filters/components/FilterPill Expand file tree Collapse file tree 3 files changed +6
-11
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' @shopify/polaris ' : patch
3+ ---
4+
5+ ` Filters ` Remove unused disabled states in ` FilterPill `
Original file line number Diff line number Diff line change 4040 background : var (--p-color-bg-subdued );
4141 }
4242
43- & .disabledFilterButton {
44- background : var (--p-color-bg-transparent-disabled-experimental );
45- border-color : var (--p-color-border-disabled );
46- color : var (--p-color-text-disabled );
47- cursor : default ;
48- }
49-
5043 & .ActiveFilterButton {
5144 background : var (--p-color-bg );
5245 border-style : solid ;
Original file line number Diff line number Diff line change @@ -94,7 +94,6 @@ export function FilterPill({
9494 selected && styles . ActiveFilterButton ,
9595 popoverActive && styles . FocusFilterButton ,
9696 focused && styles . focusedFilterButton ,
97- disabled && styles . disabledFilterButton ,
9897 ) ;
9998
10099 const clearButtonClassNames = classNames (
@@ -126,7 +125,6 @@ export function FilterPill({
126125 onClick = { togglePopoverActive }
127126 className = { toggleButtonClassNames }
128127 type = "button"
129- disabled = { disabled }
130128 >
131129 < InlineStack wrap = { false } align = "center" blockAlign = "center" gap = "0" >
132130 { selected ? (
@@ -148,7 +146,6 @@ export function FilterPill({
148146 className = { clearButtonClassNames }
149147 type = "button"
150148 aria-label = { i18n . translate ( 'Polaris.FilterPill.clear' ) }
151- disabled = { disabled }
152149 >
153150 < div className = { styles . IconWrapper } >
154151 < Icon source = { CancelSmallMinor } tone = "base" />
@@ -179,7 +176,7 @@ export function FilterPill({
179176 return (
180177 < div ref = { elementRef } >
181178 < Popover
182- active = { popoverActive && ! disabled }
179+ active = { popoverActive }
183180 activator = { activator }
184181 key = { filterKey }
185182 onClose = { togglePopoverActive }
You can’t perform that action at this time.
0 commit comments