Skip to content

Commit

Permalink
refactor(select): remove unused disabled option styles (#7477)
Browse files Browse the repository at this point in the history
* refactor(select): remove unused disabled option styles

* fix(Select): reset disabled select opacity

Co-authored-by: Alessandra Davila <[email protected]>
Co-authored-by: Andrea N. Cardona <[email protected]>
  • Loading branch information
3 people authored Jan 12, 2021
1 parent 8d79712 commit c4f2b1c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions packages/components/src/components/select/_select.scss
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@
border-bottom: 1px solid $ui-04;
border-radius: 0;
cursor: pointer;
// reset disabled <select> opacity
opacity: 1;

// Do not transition on background-color (see: https://github.com/carbon-design-system/carbon/issues/4464)
transition: outline $duration--fast-01 motion(standard, productive);
Expand Down Expand Up @@ -161,11 +163,6 @@
color: $text-01;
}

.#{$prefix}--select-option[disabled] {
cursor: not-allowed;
opacity: 0.5;
}

// Override some Firefox user-agent styles
@-moz-document url-prefix() {
.#{$prefix}--select-option {
Expand Down

0 comments on commit c4f2b1c

Please sign in to comment.