File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
packages/mui-material/src/OutlinedInput Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,14 @@ const OutlinedInputRoot = styled(InputBaseRoot, {
5151 [ `&:hover .${ outlinedInputClasses . notchedOutline } ` ] : {
5252 borderColor : ( theme . vars || theme ) . palette . text . primary ,
5353 } ,
54+ // Reset on touch devices, it doesn't add specificity
55+ '@media (hover: none)' : {
56+ [ `&:hover .${ outlinedInputClasses . notchedOutline } ` ] : {
57+ borderColor : theme . vars
58+ ? `rgba(${ theme . vars . palette . common . onBackgroundChannel } / 0.23)`
59+ : borderColor ,
60+ } ,
61+ } ,
5462 [ `&.${ outlinedInputClasses . focused } .${ outlinedInputClasses . notchedOutline } ` ] : {
5563 borderWidth : 2 ,
5664 } ,
@@ -68,14 +76,6 @@ const OutlinedInputRoot = styled(InputBaseRoot, {
6876 {
6977 props : { } , // to overide the above style
7078 style : {
71- // Reset on touch devices, it doesn't add specificity
72- '@media (hover: none)' : {
73- [ `&:hover .${ outlinedInputClasses . notchedOutline } ` ] : {
74- borderColor : theme . vars
75- ? `rgba(${ theme . vars . palette . common . onBackgroundChannel } / 0.23)`
76- : borderColor ,
77- } ,
78- } ,
7979 [ `&.${ outlinedInputClasses . error } .${ outlinedInputClasses . notchedOutline } ` ] : {
8080 borderColor : ( theme . vars || theme ) . palette . error . main ,
8181 } ,
You can’t perform that action at this time.
0 commit comments