Skip to content

Commit

Permalink
Bento Selector: Support hybrid selected/disabled state (#32825)
Browse files Browse the repository at this point in the history
* Allow disabled selected to be outlined as selected

* Apply partial transparency for disabled items
  • Loading branch information
caroqliu committed Feb 24, 2021
1 parent 7ef9f7c commit d274beb
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions extensions/amp-selector/1.0/amp-selector.css
Expand Up @@ -31,15 +31,16 @@ amp-selector[multiple] [option][selected] {
outline: solid 1px rgba(0, 0, 0, 0.7);
}

amp-selector [option][selected] {
cursor: auto;
outline: solid 1px rgba(0, 0, 0, 0.7);
}

amp-selector [disabled][option],
amp-selector[disabled] [option],
amp-selector [selected][disabled],
amp-selector[disabled] [selected] {
cursor: auto;
outline: none;
opacity: 0.4;
}

amp-selector [option][selected] {
cursor: auto;
outline: solid 1px rgba(0, 0, 0, 0.7);
}

0 comments on commit d274beb

Please sign in to comment.