Skip to content

Commit

Permalink
fix(design-system): height for input wrapper (#5197)
Browse files Browse the repository at this point in the history
* fix(design-system): height for input wrapper

* Update input height and mixins in _mixins.scss
  • Loading branch information
romainseb authored Feb 20, 2024
1 parent 9a18bdb commit 106b735
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/fresh-hats-juggle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@talend/design-system': patch
---

fix: height for input wrapper
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

.inputShell {
@include Form.border-styles();
height: tokens.$coral-sizing-m;
height: 2rem;
display: flex;
flex-flow: row;
gap: 0;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
@use '~@talend/design-tokens/lib/tokens';

$standard-input-height: calc(#{tokens.$coral-sizing-m} - 0.125rem);
$standard-input-height: calc(2rem - 0.125rem);

@mixin base-input () {
@mixin base-input() {
background: transparent;
color: tokens.$coral-color-neutral-text;
padding: tokens.$coral-spacing-xs;
Expand Down Expand Up @@ -51,7 +51,7 @@ $standard-input-height: calc(#{tokens.$coral-sizing-m} - 0.125rem);
}
}

@mixin border-styles () {
@mixin border-styles() {
border: tokens.$coral-border-s-solid tokens.$coral-color-neutral-border;
box-shadow: 0 0 0 0 transparent;
border-radius: tokens.$coral-radius-s;
Expand Down Expand Up @@ -98,5 +98,4 @@ $standard-input-height: calc(#{tokens.$coral-sizing-m} - 0.125rem);
box-shadow: 0 0 0 0.0625rem tokens.$coral-color-danger-border;
}
}

}

0 comments on commit 106b735

Please sign in to comment.