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

[@mantine/core] NumberInput: Bring back disabled style of controls #4314

Merged
merged 2 commits into from
May 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1 @@
nodejs 14.17.0
nodejs 16.13.2
4 changes: 4 additions & 0 deletions src/mantine-core/src/NumberInput/NumberInput.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ export default createStyles((theme, { radius }: NumberInputStylesParams, { size
'&:not(:disabled):hover': {
backgroundColor: theme.colorScheme === 'dark' ? theme.colors.dark[5] : theme.colors.gray[0],
},

'&:disabled': {
color: theme.colorScheme === 'dark' ? theme.colors.dark[3] : theme.colors.gray[4],
},
},

controlUp: {},
Expand Down