Skip to content

Commit

Permalink
chore(kit): new InputNumber has too large button icons for l-size (
Browse files Browse the repository at this point in the history
  • Loading branch information
nsbarsukov authored Dec 28, 2024
1 parent fc24c37 commit 8feb7ed
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions projects/kit/components/input-number/input-number.style.less
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ TODO: if :has() is supported by all browsers
border-end-end-radius: inherit;
}

tui-textfield[data-size='l'] & {
inline-size: var(--tui-height-m);
}

tui-textfield[data-size='s'] & {
&:first-child {
border-start-end-radius: inherit;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,29 @@
class="t-input-number-buttons"
>
<button
size="s"
tabindex="-1"
tuiIconButton
type="button"
class="t-button"
[appearance]="textfieldOptions.appearance()"
[disabled]="!interactive() || value()! >= max()"
[iconStart]="options.icons.increase"
[size]="textfieldOptions.size() === 'l' ? 'm' : 's'"
(click.prevent)="onStep(step())"
(mousedown.prevent)="element.focus()"
>
+
</button>

<button
size="s"
tabindex="-1"
tuiIconButton
type="button"
class="t-button"
[appearance]="textfieldOptions.appearance()"
[disabled]="!interactive() || value()! <= min()"
[iconStart]="options.icons.decrease"
[size]="textfieldOptions.size() === 'l' ? 'm' : 's'"
(click.prevent)="onStep(-step())"
(mousedown.prevent)="element.focus()"
>
Expand Down

0 comments on commit 8feb7ed

Please sign in to comment.