Skip to content

Commit c168b48

Browse files
author
Adam Bradley
committed
feat(button): Increase hit area size of a button
1 parent 6b82700 commit c168b48

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

Diff for: scss/_button.scss

+11-5
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,16 @@
2929

3030
cursor: pointer;
3131

32+
&:after {
33+
// used to create a larger button "hit" area
34+
position: absolute;
35+
top: -6px;
36+
right: -8px;
37+
bottom: -6px;
38+
left: -8px;
39+
content: ' ';
40+
}
41+
3242
.icon {
3343
vertical-align: top;
3444
}
@@ -198,11 +208,7 @@
198208
clear: both;
199209

200210
&:after {
201-
display: block;
202-
visibility: hidden;
203-
clear: both;
204-
height: 0;
205-
content: ".";
211+
clear: both;
206212
}
207213
}
208214

0 commit comments

Comments
 (0)