Skip to content

Commit f240563

Browse files
committed
chore: use aspect-ratio for color space dimension
1 parent 40b5463 commit f240563

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

dist/ColorPicker.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/ColorPicker.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ $width-color-space: 300px;
560560
grid-column: 1 / -1;
561561
562562
overflow: hidden;
563-
height: calc(var(--vacp-width-color-space, $width-color-space) * 0.6);
563+
aspect-ratio: 1 / 0.6;
564564
}
565565
566566
.vacp-color-space-thumb {
@@ -582,7 +582,7 @@ $width-color-space: 300px;
582582
*/
583583
.vacp-color-space-thumb:focus {
584584
outline-color: transparent; /* 1. */
585-
box-shadow: 0 0 0 var(--vacp-width-border, $width-border) var(--vacp-color-border, $color-border), 0 0 0 3px var(--vacp-color-focus, $color-focus);
585+
box-shadow: 0 0 0 var(--vacp-width-border, $width-border) var(--vacp-color-border, $color-border), 0 0 0 calc(var(--vacp-width-border, $width-border) + 2px) var(--vacp-color-focus, $color-focus);
586586
}
587587
588588
.vacp-range-input-label {

0 commit comments

Comments
 (0)