Skip to content

Commit

Permalink
fix(component): buttons
Browse files Browse the repository at this point in the history
change .open class to .show
  • Loading branch information
ygatesoupe committed Jan 13, 2017
1 parent 8a3263d commit 3f3fe1e
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions docs-orange/_includes/boostwatch/buttons.html
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ <h3>Dropdowns</h3>
</ul>
</div>

<div class="btn-group">
<div class="btn-group mr-2">
<button type="button" class="btn btn-info dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
Info
<span class="sr-only">menu info</span>
Expand All @@ -135,7 +135,7 @@ <h3>Dropdowns</h3>
</ul>
</div>

<div class="btn-group">
<div class="btn-group mr-2">
<button type="button" class="btn btn-warning dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
Warning
<span class="sr-only">menu warning</span>
Expand Down
4 changes: 2 additions & 2 deletions scss/_button-group.scss
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@

// On active and open, don't show outline
.btn-group .dropdown-toggle:active,
.btn-group.open .dropdown-toggle {
.btn-group.show .dropdown-toggle {
outline: 0;
}

Expand Down Expand Up @@ -118,7 +118,7 @@

// The clickable button for toggling the menu
// Remove the gradient and set the same inset shadow as the :active state
.btn-group.open .dropdown-toggle {
.btn-group.show .dropdown-toggle {
@include box-shadow($btn-active-box-shadow);

// Show no shadow for `.btn-link` since it has no other button styles.
Expand Down
8 changes: 4 additions & 4 deletions scss/_o-buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ fieldset[disabled] a.btn {

&:active,
&.active,
.open > &.dropdown-toggle {
.show > &.dropdown-toggle {
color: #000;
background-color: transparent;
background-image: none;
Expand Down Expand Up @@ -75,7 +75,7 @@ fieldset[disabled] a.btn {

&:active,
&.active,
.open > &.dropdown-toggle {
.show > &.dropdown-toggle {
color: #fff;
background-color: transparent;
border-color: #fff;
Expand Down Expand Up @@ -160,7 +160,7 @@ fieldset[disabled] a.btn {

&:active,
&.active,
.open > &.dropdown-toggle {
.show > &.dropdown-toggle {
color: #000;
background-color: transparent;
background-image: none;
Expand Down Expand Up @@ -195,7 +195,7 @@ fieldset[disabled] a.btn {

&:active,
&.active,
.open > &.dropdown-toggle {
.show > &.dropdown-toggle {
color: #fff;
background-color: transparent;
border-color: #fff;
Expand Down
2 changes: 1 addition & 1 deletion scss/_orange-css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

.nav {
// Open dropdowns
.open > a {
.show > a {
&,
&:hover,
&:focus {
Expand Down
6 changes: 3 additions & 3 deletions scss/mixins/_o-buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

&:active,
&.active,
.open > &.dropdown-toggle {
.show > &.dropdown-toggle {
color: $active-color;
background-color: $active-background;
background-image: none;
Expand Down Expand Up @@ -71,7 +71,7 @@

&:active,
&.active,
.open > &.dropdown-toggle {
.show > &.dropdown-toggle {
color: #fff;
background-color: $brand-primary;
background-image: none;
Expand Down Expand Up @@ -122,7 +122,7 @@

&:active,
&.active,
.open > &.dropdown-toggle {
.show > &.dropdown-toggle {
color: #fff;
background-color: $brand-primary;
background-image: none;
Expand Down

0 comments on commit 3f3fe1e

Please sign in to comment.