Move vertical alignment styling from component to theme level

- Move MuiSelect vertical alignment from FilterHeader component to globalTheme.js
- Ensures consistent vertical alignment for all Select components application-wide
- Removes component-specific styling in favor of theme-level consistency
- Addresses reviewer feedback to make this a theme-level change

Components already with custom Select styling will continue to work as local styles override theme styles.
This commit is contained in:
gorkem-bwl
2025-08-15 03:38:22 -04:00
parent a6d445818f
commit 5e5daef49a
2 changed files with 4 additions and 6 deletions

View File

@@ -37,12 +37,6 @@ const FilterHeader = ({ header, options, value, onChange, multiple = true }) =>
displayEmpty
value={controlledValue}
onChange={onChange}
sx={{
"& .MuiSelect-select": {
display: "flex",
alignItems: "center",
},
}}
renderValue={(selected) => {
if (!selected?.length) {
return header;

View File

@@ -564,6 +564,10 @@ const baseTheme = (palette) => ({
"& .MuiSelect-icon": {
color: theme.palette.primary.contrastTextSecondary, // Dropdown + color
},
"& .MuiSelect-select": {
display: "flex",
alignItems: "center",
},
"&:hover": {
backgroundColor: theme.palette.primary.main, // Background on hover
},