Skip to content

Commit

Permalink
review
Browse files Browse the repository at this point in the history
  • Loading branch information
k-rajat19 committed Nov 13, 2024
1 parent e8f9ce5 commit a0e82e6
Showing 1 changed file with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,6 @@ function GridColumnsManagement(props: GridColumnsManagementProps) {
<GridColumnsManagementHeader className={classes.header} ownerState={rootProps}>
<rootProps.slots.baseTextField
placeholder={apiRef.current.getLocaleText('columnsManagementSearchTitle')}
aria-label={apiRef.current.getLocaleText('columnsManagementSearchTitle')}
inputRef={searchInputRef}
value={searchValue}
onChange={handleSearchValueChange}
Expand Down Expand Up @@ -255,15 +254,11 @@ function GridColumnsManagement(props: GridColumnsManagementProps) {
),
sx: {
pl: 1.5,
[`& input[type="search"]::-webkit-search-decoration,
& input[type="search"]::-webkit-search-cancel-button,
& input[type="search"]::-webkit-search-results-button,
& input[type="search"]::-webkit-search-results-decoration`]: {
/* clears the 'X' icon from Chrome */
display: 'none',
},
},
}}
inputProps={{
'aria-label': apiRef.current.getLocaleText('columnsManagementSearchTitle'),
}}
autoComplete="off"
fullWidth
{...rootProps.slotProps?.baseTextField}
Expand Down Expand Up @@ -393,6 +388,13 @@ const GridColumnsManagementHeader = styled('div', {
overridesResolver: (props, styles) => styles.columnsManagementHeader,
})<{ ownerState: OwnerState }>(({ theme }) => ({
padding: theme.spacing(1.5, 3),
[`& input[type="search"]::-webkit-search-decoration,
& input[type="search"]::-webkit-search-cancel-button,
& input[type="search"]::-webkit-search-results-button,
& input[type="search"]::-webkit-search-results-decoration`]: {
/* clears the 'X' icon from Chrome */
display: 'none',
},
}));

const GridColumnsManagementFooter = styled('div', {
Expand Down

0 comments on commit a0e82e6

Please sign in to comment.