Skip to content

Commit

Permalink
Reduced small Select's content height to be consistent with small `…
Browse files Browse the repository at this point in the history
…ComboBox` (#2362)
  • Loading branch information
smmr-dn authored Dec 10, 2024
1 parent ab3fd0d commit 78ae415
Show file tree
Hide file tree
Showing 11 changed files with 18 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/forty-garlics-punch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@itwin/itwinui-react': patch
---

`Select` elements with "small" size now have the same height of 24px as other input elements with the size of "small" such as `ComboBox`.
5 changes: 5 additions & 0 deletions .changeset/large-colts-share.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@itwin/itwinui-css': patch
---

`iui-select-button` now has the same height as other field elements with "small" size such as `iui-input`.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 8 additions & 2 deletions packages/itwinui-css/src/select/select.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
padding-block: var(--_iui-select-padding-block);
padding-inline: var(--iui-size-s);
user-select: none;
line-height: var(--iui-size-l);
line-height: var(--_iui-select-line-height);
cursor: pointer;
@include iui-select-size;

Expand Down Expand Up @@ -51,7 +51,7 @@
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
min-block-size: var(--iui-size-l);
min-block-size: var(--_iui-select-block-size);
color: inherit;
}

Expand All @@ -67,14 +67,20 @@
@mixin iui-select-size($size: medium) {
@if $size == small {
--_iui-select-padding-block: 0;
--_iui-select-block-size: var(--iui-size-m);
--_iui-select-line-height: var(--iui-size-m);
}

@if $size == medium {
--_iui-select-padding-block: var(--iui-size-2xs);
--_iui-select-block-size: var(--iui-size-l);
--_iui-select-line-height: var(--iui-size-l);
}

@if $size == large {
--_iui-select-padding-block: var(--iui-size-xs);
--_iui-select-block-size: var(--iui-size-l);
--_iui-select-line-height: var(--iui-size-l);
}
}

Expand Down

0 comments on commit 78ae415

Please sign in to comment.