Skip to content

Commit

Permalink
chore: fix tick labels alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
nsbarsukov committed Feb 10, 2025
1 parent c670cf8 commit 13ab79f
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 3 deletions.
1 change: 1 addition & 0 deletions projects/core/styles/mixins/slider.less
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
}
}

tui-textfield + &, /* TODO: add :has([tuiInputSlider]) */
tui-input-slider + & {
margin-left: calc(var(--tui-radius-m) / 2 + @first-tick-center);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ <h3>There are also other components to input numbers:</h3>
<li class="tui-list__item">
<a
tuiLink
[routerLink]="docPages.InputSliderLegacy"
[routerLink]="docPages.InputSlider"
>
<strong>InputSlider</strong>
</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,16 @@
color: var(--tui-text-secondary);
align-items: center;
margin-top: 0.25rem;

& > [tuiIconButton]:first-child {
justify-content: start;
}

& > [tuiIconButton]:last-child {
justify-content: end;
}

& > [tuiIconButton]::before {
margin: 0;
}
}
2 changes: 1 addition & 1 deletion projects/demo/src/modules/components/input/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
,
<a
tuiLink
[routerLink]="routes.InputSliderLegacy"
[routerLink]="routes.InputSlider"
>
<code>InputSlider</code>
</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ <h3>Components that are customizable:</h3>
<li class="tui-list__item">
<a
tuiLink
[routerLink]="routes.InputSliderLegacy"
[routerLink]="routes.InputSlider"
>
TuiInputSliderComponent
</a>
Expand Down

0 comments on commit 13ab79f

Please sign in to comment.