Skip to content

Commit

Permalink
[PR feedback] Fix :focus:invalid styles
Browse files Browse the repository at this point in the history
- not sure what that `!important` was doing there 🤦
  • Loading branch information
cee-chen committed May 20, 2024
1 parent 8744588 commit 9c1f7b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/eui/src/components/form/form.styles.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ describe('euiFormControlStyles', () => {
border-radius: 0;
",
"invalid": "
--euiFormControlStateColor: #BD271E !important;
--euiFormControlStateColor: #BD271E;
background-size: 100% 100%;
",
"readOnly": "
Expand Down
2 changes: 1 addition & 1 deletion packages/eui/src/components/form/form.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ export const euiFormControlFocusStyles = ({
`;

export const euiFormControlInvalidStyles = ({ euiTheme }: UseEuiTheme) => `
--euiFormControlStateColor: ${euiTheme.colors.danger} !important;
--euiFormControlStateColor: ${euiTheme.colors.danger};
background-size: 100% 100%;
`;

Expand Down

0 comments on commit 9c1f7b8

Please sign in to comment.