Skip to content

Commit 340fbb3

Browse files
committed
autocomplete disabled option
1 parent 9fe2f22 commit 340fbb3

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

packages/mui-material/src/Autocomplete/Autocomplete.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,10 @@ const AutocompleteListbox = styled('ul', {
358358
'&[aria-disabled="true"]': {
359359
opacity: (theme.vars || theme).palette.action.disabledOpacity,
360360
pointerEvents: 'none',
361+
'@media (forced-colors: active)': {
362+
color: 'GrayText',
363+
opacity: 1,
364+
},
361365
},
362366
[`&.${autocompleteClasses.focusVisible}`]: {
363367
backgroundColor: (theme.vars || theme).palette.action.focus,

0 commit comments

Comments
 (0)