Improve grid handle size and color

pull/261/head
Cory LaViska 2020-10-12 09:08:16 -04:00
rodzic fb0ead9603
commit 1a67fd9ce7
3 zmienionych plików z 4 dodań i 2 usunięć

Wyświetl plik

@ -8,6 +8,7 @@ _During the beta period, these restrictions may be relaxed in the event of a mis
## Next
- Improved `sl-color-picker` grid handle size and color
- Updated to Popper 2.5.3 to address a fixed position bug in Firefox
## 2.0.0-beta.20

Wyświetl plik

@ -10,7 +10,7 @@
:host {
--grid-width: 260px;
--grid-height: 200px;
--grid-handle-size: 12px;
--grid-handle-size: 16px;
--slider-height: 10px;
--slider-handle-size: 12px;

Wyświetl plik

@ -644,7 +644,8 @@ export class ColorPicker {
class="color-picker__grid-handle"
style={{
top: `${y}%`,
left: `${x}%`
left: `${x}%`,
backgroundColor: `hsla(${this.hue}deg, ${this.saturation}%, ${this.lightness}%)`
}}
role="slider"
aria-label="HSL"