material-components / material-components-web

Modular and customizable Material Design UI components for the web
https://material.io/develop/web
MIT License
17.12k stars 2.15k forks source link

refactor(linearprogress): Replace deprecated `theme-color.prop-value()` #8075

Closed copybara-service[bot] closed 1 year ago

copybara-service[bot] commented 1 year ago

refactor(linearprogress): Replace deprecated theme-color.prop-value()

theme-color.prop-value() was obscuring the fact that it was extracting the fallback value from custom property map (eg (varname: ..., fallback: ...)), preventing CSS variables from being created for the buffer color. The is-custom-prop if-block and existing usages of theme.property() do the equivalent of theme-color.prop-value() without any hidden magic.