Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
feat(select): add hover styles and fix disabled
Browse files Browse the repository at this point in the history
* Adds hover styles to the select component.
* Fixes the disabled styles that were being applied to the wrong element.

Closes #7518.

Closes #7765
  • Loading branch information
crisbeto authored and ThomasBurleson committed Mar 30, 2016
1 parent cc4f626 commit 7bc3cc1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/components/select/select-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,16 @@ md-select-menu.md-THEME_NAME-theme {
color: '{{background-900-0.87}}';

&[disabled] {
color: '{{background-400-0.87}}';
._md-text {
color: '{{background-400-0.87}}';
}
}

&:focus:not([disabled]) {
background: '{{background-200}}';
&:not([disabled]) {
&:focus,
&:hover {
background: '{{background-200}}'
}
}

&[selected] {
Expand All @@ -76,7 +81,6 @@ md-select-menu.md-THEME_NAME-theme {
}
}


[md-checkbox-enabled].md-THEME_NAME-theme {
@include checkbox-primary('[selected]');

Expand Down
1 change: 1 addition & 0 deletions src/components/select/select.scss
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ md-option {
display: flex;
align-items: center;
width: auto;
transition: background 0.15s linear;

&[disabled] {
cursor: default;
Expand Down

0 comments on commit 7bc3cc1

Please sign in to comment.