Skip to content

Commit d63e00f

Browse files
committed
Rename btn-group-input to just btn-input
The class isn't necessarily just for when you want to use these in a group. You can have these just as a single checkbox, or a set of button-like radio buttons NOT in a button group. Makes more sense to generalise the name.
1 parent 846c007 commit d63e00f

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

scss/_button-group.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@
148148
// See https://github.com/twbs/bootstrap/pull/12794 and
149149
// https://github.com/twbs/bootstrap/pull/14559 for more information.
150150

151-
.btn-group-input {
151+
.btn-input {
152152
position: absolute;
153153
clip: rect(0, 0, 0, 0);
154154
pointer-events: none;

scss/mixins/_buttons.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
&:focus,
1919
&.focus,
20-
.btn-group-input:focus ~ & {
20+
.btn-input:focus ~ & {
2121
color: color-yiq($hover-background);
2222
@include gradient-bg($hover-background);
2323
border-color: $hover-border;
@@ -43,7 +43,7 @@
4343

4444
&:not(:disabled):not(.disabled):active,
4545
&:not(:disabled):not(.disabled).active,
46-
.btn-group-input:checked ~ &,
46+
.btn-input:checked ~ &,
4747
.show > &.dropdown-toggle {
4848
color: color-yiq($active-background);
4949
background-color: $active-background;
@@ -75,7 +75,7 @@
7575

7676
&:focus,
7777
&.focus,
78-
.btn-group-input:focus ~ & {
78+
.btn-input:focus ~ & {
7979
box-shadow: 0 0 0 $btn-focus-width rgba($color, .5);
8080
}
8181

@@ -87,7 +87,7 @@
8787

8888
&:not(:disabled):not(.disabled):active,
8989
&:not(:disabled):not(.disabled).active,
90-
.btn-group-input:checked ~ &,
90+
.btn-input:checked ~ &,
9191
.show > &.dropdown-toggle {
9292
color: color-yiq($active-background);
9393
background-color: $active-background;

site/content/docs/4.3/components/buttons.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ Note that pre-checked buttons require you to manually add the `checked` attribut
114114

115115
{{< example >}}
116116
<div class="btn-group">
117-
<input type="checkbox" class="btn-group-input" id="btnGroupCheckSingle" checked>
117+
<input type="checkbox" class="btn-input" id="btnGroupCheckSingle" checked>
118118
<label class="btn btn-primary" for="btnGroupCheckSingle">
119119
Checked button
120120
</label>
@@ -124,15 +124,15 @@ Note that pre-checked buttons require you to manually add the `checked` attribut
124124
{{< example >}}
125125
<div class="btn-group">
126126
<div class="btn-group">
127-
<input type="radio" class="btn-group-input" name="btnGroupRadio" id="btnGroupRadio1" checked>
127+
<input type="radio" class="btn-input" name="btnGroupRadio" id="btnGroupRadio1" checked>
128128
<label class="btn btn-primary" for="btnGroupRadio1">Radio button</label>
129129
</div>
130130
<div class="btn-group">
131-
<input type="radio" class="btn-group-input" name="btnGroupRadio" id="btnGroupRadio2">
131+
<input type="radio" class="btn-input" name="btnGroupRadio" id="btnGroupRadio2">
132132
<label class="btn btn-primary" for="btnGroupRadio2">Radio button</label>
133133
</div>
134134
<div class="btn-group">
135-
<input type="radio" class="btn-group-input" name="btnGroupRadio" id="btnGroupRadio3">
135+
<input type="radio" class="btn-input" name="btnGroupRadio" id="btnGroupRadio3">
136136
<label class="btn btn-primary" for="btnGroupRadio3">Radio button</label>
137137
</div>
138138
</div>

0 commit comments

Comments
 (0)