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

Commit 254e0e1

Browse files
committed
Fix on/off label sections being wrong height when rendering with no label
1 parent 54fee76 commit 254e0e1

File tree

7 files changed

+17
-16
lines changed

7 files changed

+17
-16
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## 3.4.4
44
- Made it so that changes to disabled prop are rendered [#11](https://github.com/Julusian/react-bootstrap-switch/pull/11) Thanks to penguinpowernz
5+
- Fix on/off label sections being wrong height when rendering with no label
56

67
## 3.4.3
78
- Fix issue with onColor when not focused [#9](https://github.com/Julusian/react-bootstrap-switch/pull/9) Thanks to bshamblen

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* ========================================================================
2-
* react-bootstrap-switch - v3.4.3
2+
* react-bootstrap-switch - v3.4.4
33
* https://github.com/Julusian/react-bootstrap-switch
44
* ========================================================================
55
* Copyright 2012-2015 Julian Waller
@@ -368,7 +368,7 @@
368368
.bootstrap-switch .bootstrap-switch-label.active {
369369
background-color: #cccccc \9;
370370
}
371-
.bootstrap-switch .bootstrap-switch-label::before {
371+
.bootstrap-switch span::before {
372372
content: "\200b";
373373
}
374374
.bootstrap-switch .bootstrap-switch-handle-on {

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

Lines changed: 2 additions & 2 deletions
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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* ========================================================================
2-
* react-bootstrap-switch - v3.4.3
2+
* react-bootstrap-switch - v3.4.4
33
* https://github.com/Julusian/react-bootstrap-switch
44
* ========================================================================
55
* Copyright 2012-2015 Julian Waller
@@ -91,7 +91,7 @@
9191
color: #333;
9292
background: #fff;
9393
}
94-
.bootstrap-switch .bootstrap-switch-label::before {
94+
.bootstrap-switch span::before {
9595
content: "\200b";
9696
}
9797
.bootstrap-switch .bootstrap-switch-handle-on {

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

Lines changed: 2 additions & 2 deletions
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 & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +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-
}
78+
}
79+
80+
span::before {
81+
content: "\200b";
8282
}
8383

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

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

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

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

0 commit comments

Comments
 (0)