Skip to content

Commit a3f90c6

Browse files
committed
[opinionated] Improve focus styles in light mode
1 parent a1530d8 commit a3f90c6

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

packages/eui/src/components/header/header.styles.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,13 @@ const euiHeaderDarkStyles = (euiThemeContext: UseEuiTheme) => {
126126
box-shadow: inset 0 0 0 ${euiTheme.border.width.thin} ${
127127
selectableSitewide.borderColor
128128
};
129+
${
130+
// hide the focus underline in light mode - the search input showing a white background
131+
// on focus is sufficient indicator
132+
colorMode !== 'DARK'
133+
? `&:focus { --euiFormControlStateColor: transparent; }`
134+
: ''
135+
}
129136
}
130137
131138
&--group {

0 commit comments

Comments
 (0)