Commit b638ff4 1 parent 2e69b1b commit b638ff4 Copy full SHA for b638ff4
File tree 3 files changed +4
-4
lines changed
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -45,12 +45,10 @@ function FeatureItems() {
45
45
< Popover className = 'relative' >
46
46
{ ( { open } ) => (
47
47
< >
48
- { /* There is a bug with Popover component that triggers :focus-visible on mouse interactions */ }
49
- { /* TODO: We should change the focus state to ring when it gets fixed to stay consistent with other elements */ }
50
48
< Popover . Button
51
49
className = { clsx (
52
50
open ? 'text-gray-900' : 'text-gray-500' ,
53
- 'group inline-flex items-center rounded-md text-base font-medium hover:text-gray-900 focus:outline-none focus- visible:text-secondary '
51
+ 'group inline-flex items-center rounded-md text-base font-medium hover:text-gray-900 focus:outline-offset-4 focus:outline-focus [&:not(:focus- visible)]:focus:outline-none '
54
52
) }
55
53
>
56
54
< span className = 'whitespace-nowrap' > Funkcje aplikacji</ span >
@@ -142,7 +140,7 @@ function NavigationItems() {
142
140
< Popover . Button
143
141
className = { clsx (
144
142
open ? 'text-gray-900' : 'text-gray-500' ,
145
- 'group inline-flex items-center rounded-md text-base font-medium hover:text-gray-900 focus:outline-none focus- visible:text-secondary '
143
+ 'group inline-flex items-center rounded-md text-base font-medium hover:text-gray-900 focus:outline-offset-4 focus:outline-focus [&:not(:focus- visible)]:focus:outline-none '
146
144
) }
147
145
>
148
146
< span > Więcej</ span >
Original file line number Diff line number Diff line change 6
6
/* #region /**=========== Colors =========== */
7
7
--color-primary : 17 20 45 ; /* #11142d */
8
8
--color-secondary : 108 93 211 ; /* #6C5DD3 */
9
+ --color-focus : rgb (59 130 246 / 0.5 ); /* #3b82f680 */
9
10
--tw-color-primary-50 : 245 243 255 ;
10
11
--tw-color-primary-100 : 237 233 254 ;
11
12
--tw-color-primary-200 : 221 214 254 ;
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ module.exports = {
13
13
colors : {
14
14
primary : 'rgb(var(--color-primary) / <alpha-value>)' ,
15
15
secondary : 'rgb(var(--color-secondary) / <alpha-value>)' ,
16
+ focus : 'var(--color-focus)' ,
16
17
dark : '#222222' ,
17
18
} ,
18
19
borderRadius : {
You can’t perform that action at this time.
0 commit comments