Skip to content

Commit

Permalink
fix(mantine): select asterisk color is too light (#3932)
Browse files Browse the repository at this point in the history
  • Loading branch information
gdostie authored Oct 21, 2024
1 parent 4beb51b commit becce83
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ export const readOnlyInputStyles = (theme: MantineTheme) => ({
'--input-color': theme.colors.gray[7],
'--input-placeholder-color': theme.colors.gray[7],
},
label: {
'--input-asterisk-color': theme.colors.red[2],
},
input: {
cursor: 'text',
},
Expand Down
2 changes: 1 addition & 1 deletion packages/mantine/src/theme/Theme.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ export const plasmaTheme: MantineThemeOverride = createTheme({
classNames: InputWrapperClasses,
vars: (theme, props) => {
const anyProps = props as any;
if (anyProps.readOnly || anyProps.disabled) {
if (anyProps.disabled || (anyProps.readOnly && !['Select'].includes(anyProps.__staticSelector))) {
return {
label: {'--input-asterisk-color': theme.colors.red[2]},
error: {},
Expand Down

0 comments on commit becce83

Please sign in to comment.