Skip to content

Commit

Permalink
fix(material-experimental/mdc-progress-bar): improve buffer color (#2…
Browse files Browse the repository at this point in the history
…2152)

* fix(material-experimental/mdc-progress-bar): improve buffer color

* fix(material-experimental/mdc-progress-bar): use color.adjust
  • Loading branch information
andrewseguin authored Mar 10, 2021
1 parent fe9b81c commit 97f1ccc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
// TODO(crisbeto): the buffer color should come from somewhere in MDC, however at the time of
// writing, their buffer color is hardcoded to #e6e6e6 which both doesn't account for theming
// and doesn't match the Material design spec. For now we approximate the buffer background by
// lightening the color of the primary bar.
$buffer-color: color.adjust(mdc-theme-color.prop-value($color), $lightness: 30%);
// applying an opacity to the color of the bar.
$buffer-color: color.adjust(mdc-theme-color.prop-value($color), $alpha: -0.75);
@include mdc-linear-progress.bar-color($color, $query: mdc-helpers.$mat-theme-styles-query);
@include mdc-linear-progress.buffer-color($buffer-color,
$query: mdc-helpers.$mat-theme-styles-query);
Expand Down

0 comments on commit 97f1ccc

Please sign in to comment.