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 973f499 commit 98c687d
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 @@ -278,7 +278,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 98c687d

Please sign in to comment.