Skip to content

Commit 743763a

Browse files
#RI-3025-add focus btn style (#766)
1 parent ad1a890 commit 743763a

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

redisinsight/ui/src/styles/components/_buttons.scss

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,16 @@
1212
color: var(--buttonSecondaryTextColor) !important;
1313
border-color: var(--euiColorSecondary);
1414
&:not([class*='isDisabled']) {
15-
&:hover,
16-
&:focus,
17-
&:focus-within {
15+
&:hover {
1816
background-color: var(--buttonSecondaryHoverColor);
1917
border-color: var(--buttonSecondaryHoverColor);
2018
color: var(--euiColorPrimaryText) !important;
2119
}
2220
}
21+
&:focus,
22+
&:focus-within {
23+
border: 2px solid var(--euiColorPrimary);
24+
}
2325
.euiTextColor--default {
2426
color: currentColor;
2527
}
@@ -34,6 +36,10 @@
3436
&:hover {
3537
color: var(--euiColorPrimaryText) !important;
3638
}
39+
&:focus,
40+
&:focus-within {
41+
border: 2px solid var(--euiColorPrimary);
42+
}
3743
}
3844
}
3945
.euiButton.euiButton--fill {
@@ -42,12 +48,14 @@
4248
background-color: var(--euiColorSecondary);
4349

4450
&:not([class*='isDisabled']) {
45-
&:hover,
46-
&:focus,
47-
&:focus-within {
51+
&:hover {
4852
background-color: var(--buttonSecondaryHoverColor);
4953
border-color: var(--buttonSecondaryHoverColor);
5054
}
55+
&:focus,
56+
&:focus-within {
57+
border: 2px solid var(--euiColorPrimary);
58+
}
5159
}
5260
}
5361
}

0 commit comments

Comments
 (0)