Skip to content

Commit 5fa7e97

Browse files
authored
Merge pull request #180 from rackerlabs/SURF-1011-fix-choice-tile-scrolling
fix(Choice Tiles): correct focus bug
2 parents 659de55 + a88e155 commit 5fa7e97

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

src/helix-ui/styles/modules/choice-tiles.less

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
@import (reference) 'modules/grid';
2+
@import (reference) '_utils';
23

34
.hxRow > label.hxChoice {
45
#grid.column();
@@ -7,8 +8,21 @@
78
// Layout & Geometry
89
/* ========== COMMON ========== */
910
label.hxChoice > input {
11+
-moz-appearance: none;
12+
-webkit-appearance: none;
13+
appearance: none;
14+
border: 0;
15+
height: 1px;
16+
margin: -1px;
17+
overflow: hidden;
18+
padding: 0;
1019
position: absolute;
11-
top: -200px;
20+
width: 1px;
21+
z-index: -10;
22+
23+
&:focus {
24+
#Util.resetFocus();
25+
}
1226

1327
&:checked + hx-tile {
1428
hx-icon[type="checkmark"] {

0 commit comments

Comments
 (0)