Skip to content

Commit

Permalink
Components: Restore default opacity to buttons (#16769)
Browse files Browse the repository at this point in the history
* Components: Restore default opacity to buttons

* Components: Remove redundant DropdownMenu disabled styling
  • Loading branch information
aduth authored Jul 26, 2019
1 parent 567214a commit 50880f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
3 changes: 3 additions & 0 deletions packages/components/src/button/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
box-shadow: none;
text-shadow: 0 1px 0 #fff;
transform: none;
opacity: 1;
}
}

Expand Down Expand Up @@ -109,6 +110,7 @@
border-color: color(theme(button) shade(7%));
box-shadow: none;
text-shadow: none;
opacity: 1;

// This specificity is needed to override alternate color schemes in WP-Admin.
&.is-button,
Expand Down Expand Up @@ -189,6 +191,7 @@
&:disabled,
&[aria-disabled="true"] {
cursor: default;
opacity: 0.3;
}

&:focus:not(:disabled) {
Expand Down
8 changes: 0 additions & 8 deletions packages/components/src/dropdown-menu/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,4 @@
padding-left: 0.5rem;
}
}

.components-dropdown-menu__menu-item,
.components-menu-item__button {
&:disabled,
&[aria-disabled="true"] {
opacity: 0.3;
}
}
}

0 comments on commit 50880f6

Please sign in to comment.