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

Commit

Permalink
fix(slider): Update CSS to better conform to spec.
Browse files Browse the repository at this point in the history
Remove grey focus ring in favor of transparent background ring.

fixes #2427. closes $4241.
  • Loading branch information
topherfangio authored and ThomasBurleson committed Aug 19, 2015
1 parent fbb6b28 commit 7fd8b09
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
8 changes: 7 additions & 1 deletion src/components/slider/slider-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ md-slider.md-THEME_NAME-theme {
background-color: '{{foreground-2}}';
}
.md-focus-ring {
border-color: '{{foreground-4}}';
background-color: '{{accent-color}}';
}
.md-disabled-thumb {
border-color: '{{background-color}}';
Expand All @@ -37,6 +37,9 @@ md-slider.md-THEME_NAME-theme {
}

&.md-warn {
.md-focus-ring {
background-color: '{{warn-color}}';
}
.md-track.md-track-fill {
background-color: '{{warn-color}}';
}
Expand All @@ -57,6 +60,9 @@ md-slider.md-THEME_NAME-theme {
}

&.md-primary {
.md-focus-ring {
background-color: '{{primary-color}}';
}
.md-track.md-track-fill {
background-color: '{{primary-color}}';
}
Expand Down
3 changes: 1 addition & 2 deletions src/components/slider/slider.scss
Original file line number Diff line number Diff line change
Expand Up @@ -183,10 +183,9 @@ md-slider {
}
.md-focus-ring {
@include slider-thumb-position($slider-focus-thumb-width, $slider-focus-thumb-height);
border: 2px solid #D6D6D6;
background-color: transparent;
transform: scale(0);
transition: all 0.2s linear;
opacity: 0.26;
}
.md-disabled-thumb {
@include slider-thumb-position(
Expand Down

0 comments on commit 7fd8b09

Please sign in to comment.