Skip to content

Commit f1f9e9c

Browse files
Merge pull request #1564 from ASU/UDS-1970
UDS-1970: feat(unity-bootstrap-theme): added mixin to expand clickable area
2 parents 9a7f429 + 6b791b5 commit f1f9e9c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

packages/unity-bootstrap-theme/src/scss/extends/_buttons.scss

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,24 @@
55
1rem;
66
}
77

8+
@mixin clickable-area() {
9+
position: relative;
10+
&::before {
11+
content: "";
12+
position: absolute;
13+
inset: -10px;
14+
margin: auto;
15+
}
16+
}
17+
818
// Extra styles that don't have bootstrap variables to override
919
.btn {
1020
text-decoration: none;
1121
font-weight: bold;
1222
white-space: nowrap;
1323
width: max-content !important;
24+
@include clickable-area();
25+
1426
&::first-letter {
1527
text-transform: uppercase;
1628
}

0 commit comments

Comments
 (0)