-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bring back sizes mistakenly removed from
InputGroup
to fix label al…
…ignment in horizontal layout
- Loading branch information
1 parent
cfacdbc
commit 2d8f42d
Showing
2 changed files
with
25 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,22 @@ | ||
@use "sass:map"; | ||
@use "../../theme/form-fields" as theme; | ||
|
||
@mixin size($size, $is-multiline: false) { | ||
@mixin size($size, $has-input: true, $is-multiline: false) { | ||
$size-properties: map.get(theme.$box-sizes, $size); | ||
|
||
--rui-local-padding-y: #{map.get($size-properties, padding-y)}; | ||
--rui-local-padding-x: #{map.get($size-properties, padding-x)}; | ||
--rui-local-font-size: #{map.get($size-properties, font-size)}; | ||
|
||
.input { | ||
@if $is-multiline { | ||
height: auto; | ||
min-height: map.get($size-properties, height); | ||
} @else { | ||
--rui-local-height: #{map.get($size-properties, height)}; | ||
@if $has-input { | ||
--rui-local-font-size: #{map.get($size-properties, font-size)}; | ||
|
||
.input { | ||
@if $is-multiline { | ||
height: auto; | ||
min-height: map.get($size-properties, height); | ||
} @else { | ||
--rui-local-height: #{map.get($size-properties, height)}; | ||
} | ||
} | ||
} | ||
} |