Skip to content

Commit 6429619

Browse files
committed
deal with focus issues
1 parent 67224c7 commit 6429619

File tree

3 files changed

+26
-1
lines changed

3 files changed

+26
-1
lines changed

site/components/UnicornEditor/styles.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,18 @@
3131
background-color: #fff;
3232
}
3333

34+
.stateButton:focus {
35+
outline: 0; /* reset for :focus */
36+
}
37+
38+
.stateButton:hover {
39+
background: #f3f3f3;
40+
}
41+
42+
.stateButton:active {
43+
background: #e6e6e6;
44+
}
45+
3446
.pressedStateButton {
3547
composes: stateButton;
3648
background-color: #ededed;

src/stickerPlugin/StickerSelect/StickerOption/styles.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
background: #fff;
55
}
66

7-
.root:hover {
7+
.root:hover, .root:focus {
88
background: #efefef;
9+
outline: 0; /* reset for :focus */
910
}
1011

1112
.root:active {

src/stickerPlugin/StickerSelect/styles.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,18 @@
3232
padding-right: 18px;
3333
}
3434

35+
.button:focus {
36+
outline: 0; /* reset for :focus */
37+
}
38+
39+
.button:hover {
40+
background: #f3f3f3;
41+
}
42+
43+
.button:active {
44+
background: #e6e6e6;
45+
}
46+
3547
.pressedButton {
3648
composes: button;
3749
background: #ededed;

0 commit comments

Comments
 (0)