Skip to content

Commit

Permalink
color instead of opacity?
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Mar 26, 2020
1 parent da46bcf commit 0e2a8c8
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
7 changes: 0 additions & 7 deletions packages/material-ui-lab/src/Autocomplete/Autocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,20 +135,13 @@ export const styles = (theme) => ({
marginRight: -2,
padding: 4,
visibility: 'hidden',
color: 'currentColor',
opacity: 0.6,
},
/* Styles applied to the clear indicator if the input is dirty. */
clearIndicatorDirty: {},
/* Styles applied to the popup indicator. */
popupIndicator: {
padding: 2,
marginRight: -2,
color: 'currentColor',
opacity: 0.6,
'&:disabled': {
color: 'currentColor',
},
},
/* Styles applied to the popup indicator if the popup is open. */
popupIndicatorOpen: {
Expand Down
6 changes: 4 additions & 2 deletions packages/material-ui/src/NativeSelect/NativeSelect.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,11 @@ export const styles = (theme) => ({
position: 'absolute',
right: 0,
top: 'calc(50% - 12px)', // Center vertically
color: 'currentColor',
opacity: 0.6, // Reduced opacity to account for the icon's large surface area.
pointerEvents: 'none', // Don't block pointer events on the select under the icon.
color: theme.palette.action.active,
'&$disabled': {
color: theme.palette.action.disabled,
},
},
/* Styles applied to the icon component if the popup is open. */
iconOpen: {
Expand Down
6 changes: 5 additions & 1 deletion packages/material-ui/src/NativeSelect/NativeSelectInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ const NativeSelectInput = React.forwardRef(function NativeSelectInput(props, ref
{...other}
/>
{props.multiple ? null : (
<IconComponent className={clsx(classes.icon, classes[`icon${capitalize(variant)}`])} />
<IconComponent
className={clsx(classes.icon, classes[`icon${capitalize(variant)}`], {
[classes.disabled]: disabled,
})}
/>
)}
</React.Fragment>
);
Expand Down
1 change: 1 addition & 0 deletions packages/material-ui/src/Select/SelectInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,7 @@ const SelectInput = React.forwardRef(function SelectInput(props, ref) {
<IconComponent
className={clsx(classes.icon, classes[`icon${capitalize(variant)}`], {
[classes.iconOpen]: open,
[classes.disabled]: disabled,
})}
/>
<Menu
Expand Down

0 comments on commit 0e2a8c8

Please sign in to comment.