Skip to content

Commit

Permalink
fix(range): step change & style
Browse files Browse the repository at this point in the history
  • Loading branch information
aesteves60 authored and dpellier committed Jul 29, 2024
1 parent 5a4d110 commit 851204c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@

&__shadow-thumb {
position: absolute;
top: -2px;
opacity: 0;
z-index: -2;
width: 16px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,11 @@ export class OdsRange {
setFormValue(this.internals, this.value);
}

@Watch('step')
onStepChange(): void {
this.onInput();
}

componentWillLoad(): void {
this.hostId = this.el.id || getRandomHTMLId();

Expand Down
1 change: 1 addition & 0 deletions packages/ods/src/style/_range.scss
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ $range-background-color: var(--ods-color-neutral-300);

@mixin thumb() {
appearance: none;
box-sizing: border-box;
border: 1px solid var(--ods-color-neutral-300);
border-radius: 50%;
box-shadow: none;
Expand Down

0 comments on commit 851204c

Please sign in to comment.