Skip to content

Commit aefe094

Browse files
committed
Improve contrast on invalid inputs
Especially applicable on the high contrast theme.
1 parent 41e0209 commit aefe094

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/components/common/inputs.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,11 @@ const invalidTextCss = css`
115115
border-color: ${p => p.theme.warningColor};
116116
background-color: ${p => p.theme.warningBackground};
117117
color: ${p => p.theme.mainColor};
118+
119+
&:hover:not(:disabled) {
120+
border-color: ${p => p.theme.mainColor};
121+
background-color: ${p => p.theme.warningBackground};
122+
}
118123
`;
119124

120125
type TextInputProps = React.InputHTMLAttributes<HTMLInputElement> & {

0 commit comments

Comments
 (0)