|
138 | 138 | $button-disabled-arrow-color: hsla(from adaptive-contrast(var(--button-disabled-background)) h s l / 0.4); |
139 | 139 | } |
140 | 140 |
|
141 | | - @if not($indicator-dot-color) and $indicator-background { |
142 | | - $indicator-dot-color: hsla(from adaptive-contrast(var(--indicator-background)) h s l / 0.8); |
143 | | - } |
144 | | - |
145 | 141 | @if not($indicator-hover-dot-color) and $indicator-dot-color { |
146 | | - $indicator-hover-dot-color: hsla(from var(--indicator-dot-color) h s l / 1); |
| 142 | + $indicator-hover-dot-color: dynamic-shade(var(--indicator-dot-color)); |
147 | 143 | } |
148 | 144 |
|
149 | | - @if not($indicator-border-color) and $indicator-dot-color { |
150 | | - $indicator-border-color: var(--indicator-dot-color); |
151 | | - } |
| 145 | + @if $variant == 'indigo' { |
| 146 | + @if not($indicator-dot-color) and $indicator-background { |
| 147 | + $indicator-dot-color: hsla(from adaptive-contrast(var(--indicator-background)) h s l / 0.8); |
| 148 | + } |
152 | 149 |
|
153 | | - @if not($indicator-active-dot-color) and $indicator-background { |
154 | | - $indicator-active-dot-color: hsl(from adaptive-contrast(var(--indicator-background)) h s calc(l * 0.9)); |
| 150 | + @if not($indicator-hover-dot-color) and $indicator-dot-color { |
| 151 | + $indicator-hover-dot-color: hsla(from var(--indicator-dot-color) h s l / 1); |
| 152 | + } |
| 153 | + |
| 154 | + @if not($indicator-border-color) and $indicator-dot-color { |
| 155 | + $indicator-border-color: var(--indicator-dot-color); |
| 156 | + } |
| 157 | + } @else { |
| 158 | + @if not($indicator-border-color) and $indicator-background { |
| 159 | + $indicator-border-color: hsla(from adaptive-contrast(var(--indicator-background)) h s l / 0.8); |
| 160 | + } |
155 | 161 | } |
156 | 162 |
|
157 | 163 | @if not($indicator-active-hover-dot-color) and $indicator-active-dot-color { |
158 | | - $indicator-active-hover-dot-color: hsl(from var(--indicator-active-dot-color) h s calc(l * 1.1)); |
| 164 | + $indicator-active-hover-dot-color: dynamic-shade(var(--indicator-active-dot-color)); |
| 165 | + } |
| 166 | + |
| 167 | + @if not($indicator-active-dot-color) and $indicator-background { |
| 168 | + $indicator-active-dot-color: adaptive-contrast(var(--indicator-background)); |
| 169 | + $indicator-active-hover-dot-color: var(--indicator-active-dot-color); |
159 | 170 | } |
160 | 171 |
|
161 | 172 | @if not($indicator-active-border-color) and $indicator-active-dot-color { |
|
0 commit comments