kopia lustrzana https://github.com/shoelace-style/shoelace
Improve grid handle size and color
rodzic
fb0ead9603
commit
1a67fd9ce7
|
@ -8,6 +8,7 @@ _During the beta period, these restrictions may be relaxed in the event of a mis
|
||||||
|
|
||||||
## Next
|
## Next
|
||||||
|
|
||||||
|
- Improved `sl-color-picker` grid handle size and color
|
||||||
- Updated to Popper 2.5.3 to address a fixed position bug in Firefox
|
- Updated to Popper 2.5.3 to address a fixed position bug in Firefox
|
||||||
|
|
||||||
## 2.0.0-beta.20
|
## 2.0.0-beta.20
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
:host {
|
:host {
|
||||||
--grid-width: 260px;
|
--grid-width: 260px;
|
||||||
--grid-height: 200px;
|
--grid-height: 200px;
|
||||||
--grid-handle-size: 12px;
|
--grid-handle-size: 16px;
|
||||||
--slider-height: 10px;
|
--slider-height: 10px;
|
||||||
--slider-handle-size: 12px;
|
--slider-handle-size: 12px;
|
||||||
|
|
||||||
|
|
|
@ -644,7 +644,8 @@ export class ColorPicker {
|
||||||
class="color-picker__grid-handle"
|
class="color-picker__grid-handle"
|
||||||
style={{
|
style={{
|
||||||
top: `${y}%`,
|
top: `${y}%`,
|
||||||
left: `${x}%`
|
left: `${x}%`,
|
||||||
|
backgroundColor: `hsla(${this.hue}deg, ${this.saturation}%, ${this.lightness}%)`
|
||||||
}}
|
}}
|
||||||
role="slider"
|
role="slider"
|
||||||
aria-label="HSL"
|
aria-label="HSL"
|
||||||
|
|
Ładowanie…
Reference in New Issue