Skip to content

Commit 3d7e2b7

Browse files
authored
focus → focus-visible (#1330)
1 parent d169c9a commit 3d7e2b7

File tree

9 files changed

+15
-15
lines changed

9 files changed

+15
-15
lines changed

src/gtk-4.0/widgets/_badges.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
min-height: 0;
4646
min-width: rem(16px);
4747

48-
row:selected:not(:focus) & {
48+
row:selected:not(:focus-visible) & {
4949
color: inherit;
5050
background: rgba($fg-color, 0.15);
5151
}

src/gtk-4.0/widgets/_buttons.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ button {
1818
background: rgba($fg-color, 0.15);
1919
}
2020

21-
&:focus {
21+
&:focus-visible {
2222
@extend selection;
2323
outline-style: none;
2424
}
@@ -52,7 +52,7 @@ button {
5252
&.destructive-action:not(:disabled) {
5353

5454
&,
55-
&:focus {
55+
&:focus-visible {
5656
@if $color-scheme == "light" {
5757
background-clip: border-box;
5858
border-color: $border-color;
@@ -70,7 +70,7 @@ button {
7070
text-shadow: 0 1px 1px $STRAWBERRY_500;
7171
-gtk-icon-shadow: 0 1px 1px $STRAWBERRY_500;
7272

73-
&:focus {
73+
&:focus-visible {
7474
outline-color: rgba($STRAWBERRY_300, 0.5);
7575
}
7676
}
@@ -115,7 +115,7 @@ button {
115115
outset-shadow(1);
116116
}
117117

118-
&:focus {
118+
&:focus-visible {
119119
@if $color-scheme == "light" {
120120
border-color: #{'@accent_color'};
121121
}

src/gtk-4.0/widgets/_checkbuttons.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ radio {
4848
-gtk-icon-source: -gtk-icontheme("check-mixed-symbolic");
4949
}
5050

51-
&:focus {
51+
&:focus-visible {
5252
&:not(:checked) {
5353
@if $color-scheme == "light" {
5454
border-color: #{'@accent_color'};

src/gtk-4.0/widgets/_columnviews.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ columnview {
3939
background: rgba($fg-color, 0.15);
4040
}
4141

42-
&:focus:selected {
42+
&:focus-visible:selected {
4343
@extend selection;
4444
}
4545
}

src/gtk-4.0/widgets/_lists.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ listview {
77
}
88

99
row {
10-
&:focus,
10+
&:focus-visible,
1111
&:selected {
1212
background: rgba($fg-color, 0.15);
1313
}
1414

15-
&:focus:selected {
15+
&:focus-visible:selected {
1616
@extend selection;
1717
}
1818
}

src/gtk-4.0/widgets/_scales.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ scale {
227227
}
228228
}
229229

230-
&:focus slider {
230+
&:focus-visible slider {
231231
@if $color-scheme == "light" {
232232
box-shadow:
233233
outset-highlight("full"),

src/gtk-4.0/widgets/_switches.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ switch {
7373
}
7474
}
7575

76-
&:focus {
76+
&:focus-visible {
7777
@if $color-scheme == "light" {
7878
border-color: #{'@accent_color'};
7979
}

src/gtk-4.0/widgets/_treeviews.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ treeview {
44
background: rgba($fg-color, 0.15);
55
}
66

7-
&:focus:selected {
7+
&:focus-visible:selected {
88
@extend selection;
99
}
1010
}

src/gtk-4.0/widgets/_views.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ iconview.view.cell {
1414
background: rgba($fg-color, 0.15);
1515
}
1616

17-
&:focus:selected {
17+
&:focus-visible:selected {
1818
@extend selection;
1919
}
2020
}
@@ -23,12 +23,12 @@ gridview child,
2323
flowboxchild {
2424
border-radius: rem(3px);
2525

26-
&:focus,
26+
&:focus-visible,
2727
&:selected {
2828
background: rgba($fg-color, 0.15);
2929
}
3030

31-
&:focus:selected {
31+
&:focus-visible:selected {
3232
@extend selection;
3333
}
3434
}

0 commit comments

Comments
 (0)