Skip to content

Commit

Permalink
fix(range): css adjustement
Browse files Browse the repository at this point in the history
  • Loading branch information
aesteves60 authored and dpellier committed Jul 29, 2024
1 parent 94ea8d1 commit 1a42894
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,22 +22,22 @@

&__min {
position: absolute;
margin-top: 12px;
top: 12px;
color: var(--ods-color-text);
}

&__max {
position: absolute;
top: 12px;
right: 0;
margin-top: 12px;
color: var(--ods-color-text);
}

&__shadow-thumb {
position: absolute;
top: -2px;
opacity: 0;
z-index: -2;
z-index: -1;
width: 16px;
height: 16px;
}
Expand Down
5 changes: 3 additions & 2 deletions packages/ods/src/style/_range.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ $ods-input-range-height: 8px;
$ods-input-range-size-thumb: 16px;
$range-background-color-active: var(--ods-color-primary-500);
$range-background-color: var(--ods-color-neutral-300);
$range-z-index-dual: 1;

@mixin ods-range() {
$range: &;
Expand Down Expand Up @@ -126,7 +127,7 @@ $range-background-color: var(--ods-color-neutral-300);

@mixin ods-range-dual() {
.ods-range__range-dual {
z-index: 1;
z-index: $range-z-index-dual;
background: linear-gradient(to right,
$range-background-color 0,
$range-background-color min(var(--ods-range-value-percentage), var(--ods-range-value-percentage-dual)),
Expand All @@ -148,7 +149,7 @@ $range-background-color: var(--ods-color-neutral-300);

.ods-range__range {
position: absolute;
z-index: 2;
z-index: $range-z-index-dual + 1;
margin-top: 6px;
height: 0;
}
Expand Down

0 comments on commit 1a42894

Please sign in to comment.