Skip to content

Commit

Permalink
non-aesthetic changes
Browse files Browse the repository at this point in the history
Co-authored-by: Greta <[email protected]>
  • Loading branch information
mayank99 and gretanausedaite committed May 9, 2023
1 parent aa166d7 commit d154b22
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,6 @@
--_iui-input-padding-block: 0;
--_iui-input-min-height: var(--iui-component-height-small);

// To match borderless button left padding + border
--_iui-flex-input-icon-padding: 10px;

display: inline-flex;
align-items: center;
background-color: var(--_iui-input-background-color);
Expand All @@ -59,6 +56,7 @@
position: relative;
height: var(--_iui-input-min-height);
width: 100%;
isolation: isolate;

// Adding before pseudo-element to make inner elements more centered
&::before {
Expand Down
13 changes: 11 additions & 2 deletions packages/itwinui-css/src/searchbox/searchbox.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
.iui-expandable-searchbox {
width: var(--_iui-input-min-height);
transition: width var(--iui-duration-1) ease-in-out;
isolation: isolate;
overflow: hidden;

&:has(.iui-searchbox-open-button:focus-visible) {
outline: 2px solid var(--_iui-input-accent-border-color);
Expand All @@ -23,6 +21,17 @@
width: 100%;
border-color: var(--_iui-input-border-color);
}

// To match borderless button left padding + border
--_iui-flex-input-icon-padding: 10px;

&[data-iui-size='small'] {
--_iui-flex-input-icon-padding: 5px;
}

&[data-iui-size='large'] {
--_iui-flex-input-icon-padding: 16px;
}
}

.iui-search-icon {
Expand Down

0 comments on commit d154b22

Please sign in to comment.