Skip to content
This repository was archived by the owner on Aug 3, 2022. It is now read-only.

Commit bbd9754

Browse files
committed
Fix span inside handle not being full height, causing clicks near the edges to fail
1 parent e63607d commit bbd9754

File tree

6 files changed

+16
-2
lines changed

6 files changed

+16
-2
lines changed

dist/css/bootstrap2/react-bootstrap-switch.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,9 @@
368368
.bootstrap-switch .bootstrap-switch-label.active {
369369
background-color: #cccccc \9;
370370
}
371+
.bootstrap-switch .bootstrap-switch-label::before {
372+
content: "\200b";
373+
}
371374
.bootstrap-switch .bootstrap-switch-handle-on {
372375
-webkit-border-top-left-radius: 4px;
373376
-moz-border-radius-topleft: 4px;

dist/css/bootstrap2/react-bootstrap-switch.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/css/bootstrap3/react-bootstrap-switch.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@
9191
color: #333;
9292
background: #fff;
9393
}
94+
.bootstrap-switch .bootstrap-switch-label::before {
95+
content: "\200b";
96+
}
9497
.bootstrap-switch .bootstrap-switch-handle-on {
9598
border-bottom-left-radius: 3px;
9699
border-top-left-radius: 3px;

dist/css/bootstrap3/react-bootstrap-switch.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/less/bootstrap2/react-bootstrap-switch.less

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,10 @@
7575
border-left: 1px solid @btnBorder;
7676
border-right: 1px solid @btnBorder;
7777
.buttonBackground(@btnBackground, @btnBackgroundHighlight, @grayDark);
78+
79+
&::before {
80+
content: "\200b";
81+
}
7882
}
7983

8084
.@{bootstrap-switch-base}-handle-on {

src/less/bootstrap3/react-bootstrap-switch.less

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@
7777
z-index: 100;
7878
color: @btn-default-color;
7979
background: @btn-default-bg;
80+
81+
&::before {
82+
content: "\200b";
83+
}
8084
}
8185

8286
.@{bootstrap-switch-base}-handle-on {

0 commit comments

Comments
 (0)