Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Input] Make CSS override a bit simpler #13825

Merged
merged 2 commits into from
Dec 5, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions packages/material-ui/src/Input/Input.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,14 @@ export const styles = theme => {
pointerEvents: 'none', // Transparent to the hover style.
},
'&:hover:not($disabled):not($focused):not($error):before': {
borderBottom: `2px solid ${theme.palette.text.primary}`,
borderBottomWidth: '2px',
// Reset on touch devices, it doesn't add specificity
'@media (hover: none)': {
borderBottom: `1px solid ${bottomLineColor}`,
borderBottom: '1px',
oliviertassinari marked this conversation as resolved.
Show resolved Hide resolved
},
},
'&$disabled:before': {
borderBottom: `1px dotted ${bottomLineColor}`,
borderBottomStyle: 'dotted',
},
},
/* Styles applied to the root element if `error={true}`. */
Expand Down