|
2 | 2 | @use 'sass:meta'; |
3 | 3 | @use '../../base' as *; |
4 | 4 | @use '../../themes/schemas' as *; |
| 5 | +@use '../../../styles/themes/standalone' as *; |
5 | 6 |
|
6 | 7 | //// |
7 | 8 | /// @group themes |
|
48 | 49 | /// @see {mixin} css-vars |
49 | 50 | /// @param {Map} $theme - The theme used to style the component. |
50 | 51 | @mixin rating($theme) { |
51 | | - @include css-vars($theme: $theme); |
| 52 | + @include layer(base) { |
| 53 | + @include css-vars($theme: $theme); |
52 | 54 |
|
53 | | - igc-rating::part(label) { |
54 | | - color: var-get($theme, 'label-color'); |
55 | | - } |
| 55 | + igc-rating::part(label) { |
| 56 | + color: var-get($theme, 'label-color'); |
| 57 | + } |
56 | 58 |
|
57 | | - igc-rating::part(value-label) { |
58 | | - color: var-get($theme, 'value-label'); |
59 | | - } |
| 59 | + igc-rating::part(value-label) { |
| 60 | + color: var-get($theme, 'value-label'); |
| 61 | + } |
60 | 62 |
|
61 | | - igc-rating[disabled]::part(label), |
62 | | - igc-rating[disabled]::part(value-label) { |
63 | | - color: var-get($theme, 'disabled-label-color'); |
64 | | - } |
| 63 | + igc-rating[disabled]::part(label), |
| 64 | + igc-rating[disabled]::part(value-label) { |
| 65 | + color: var-get($theme, 'disabled-label-color'); |
| 66 | + } |
65 | 67 |
|
66 | | - igc-rating[disabled] { |
67 | | - --symbol-empty-color: #{var-get($theme, 'disabled-empty-symbol-color')}; |
68 | | - --symbol-full-color: #{var-get($theme, 'disabled-full-symbol-color')}; |
69 | | - --disabled-symbol-empty-filter: #{var-get($theme, 'symbol-empty-filter')}; |
70 | | - --disabled-symbol-full-filter: #{var-get($theme, 'symbol-full-filter')}; |
| 68 | + igc-rating[disabled] { |
| 69 | + --symbol-empty-color: #{var-get($theme, 'disabled-empty-symbol-color')}; |
| 70 | + --symbol-full-color: #{var-get($theme, 'disabled-full-symbol-color')}; |
| 71 | + --disabled-symbol-empty-filter: #{var-get($theme, 'symbol-empty-filter')}; |
| 72 | + --disabled-symbol-full-filter: #{var-get($theme, 'symbol-full-filter')}; |
| 73 | + } |
71 | 74 | } |
72 | 75 | } |
0 commit comments