kopia lustrzana https://github.com/shoelace-style/shoelace
Improve grid handle size and color
rodzic
fb0ead9603
commit
1a67fd9ce7
docs/getting-started
src/components/color-picker
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
Ładowanie…
Reference in New Issue