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

Commit

Permalink
Fix span inside handle not being full height, causing clicks near the…
Browse files Browse the repository at this point in the history
… edges to fail
  • Loading branch information
Julusian committed Jan 26, 2016
1 parent e63607d commit bbd9754
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 2 deletions.
3 changes: 3 additions & 0 deletions dist/css/bootstrap2/react-bootstrap-switch.css
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,9 @@
.bootstrap-switch .bootstrap-switch-label.active {
background-color: #cccccc \9;
}
.bootstrap-switch .bootstrap-switch-label::before {
content: "\200b";
}
.bootstrap-switch .bootstrap-switch-handle-on {
-webkit-border-top-left-radius: 4px;
-moz-border-radius-topleft: 4px;
Expand Down
2 changes: 1 addition & 1 deletion dist/css/bootstrap2/react-bootstrap-switch.min.css

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions dist/css/bootstrap3/react-bootstrap-switch.css
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@
color: #333;
background: #fff;
}
.bootstrap-switch .bootstrap-switch-label::before {
content: "\200b";
}
.bootstrap-switch .bootstrap-switch-handle-on {
border-bottom-left-radius: 3px;
border-top-left-radius: 3px;
Expand Down
2 changes: 1 addition & 1 deletion dist/css/bootstrap3/react-bootstrap-switch.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions src/less/bootstrap2/react-bootstrap-switch.less
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@
border-left: 1px solid @btnBorder;
border-right: 1px solid @btnBorder;
.buttonBackground(@btnBackground, @btnBackgroundHighlight, @grayDark);

&::before {
content: "\200b";
}
}

.@{bootstrap-switch-base}-handle-on {
Expand Down
4 changes: 4 additions & 0 deletions src/less/bootstrap3/react-bootstrap-switch.less
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@
z-index: 100;
color: @btn-default-color;
background: @btn-default-bg;

&::before {
content: "\200b";
}
}

.@{bootstrap-switch-base}-handle-on {
Expand Down

0 comments on commit bbd9754

Please sign in to comment.