Skip to content

Commit 6c376c4

Browse files
committed
Fix regression in hiding the filter icon on column headers
Regressed with 0ae8336 as it changed the CSS selector
1 parent 9241150 commit 6c376c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/Grid/DefaultDataGridStyles.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,12 +137,12 @@ export const flexLayout = {
137137
},
138138
} satisfies Sx;
139139

140-
// Hide filter operator button - useful when there is only one operator
140+
// Hide the filter operator button - not useful when there is only one operator
141141
export const noHeaderFilterButtons = {
142142
'.MuiDataGrid-headerFilterRow .MuiDataGrid-columnHeader': {
143143
[[
144144
// Hide the operator button
145-
'button[title="Operator"]',
145+
`button[title="${GRID_DEFAULT_LOCALE_TEXT.filterPanelOperator}"]`,
146146
// Hide the clear icon button for select inputs
147147
// It seems cluttered, and it is only a couple clicks to clear it.
148148
'.MuiFormControl-root:has(.MuiSelect-select) + button:has([data-testid="ClearIcon"])',

0 commit comments

Comments
 (0)