Skip to content

Commit 9db4027

Browse files
committed
fixed icon position
1 parent 1ce4071 commit 9db4027

File tree

3 files changed

+14
-10
lines changed

3 files changed

+14
-10
lines changed

packages/assets/src/scss/helper-text.scss renamed to packages/assets/src/scss/_helper-text.scss

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,24 @@
1-
@use 'sass:list';
1+
@use 'sass:map';
22
@use 'functions' as *;
33
@use 'variables' as *;
44

5-
$helper-text-types:
6-
'default' $color-neutral-160,
7-
'error' $color-error-80;
5+
$helper-text-types: (
6+
'default': $color-neutral-160,
7+
'error': $color-error-80,
8+
);
89

910
.ids-helper-text {
1011
$self: &;
1112

1213
font-size: $text-font-size-m;
13-
color: #{list.nth($helper-text-types, 1)};
14+
color: #{map.get($helper-text-types, 'default')};
1415
display: flex;
15-
align-items: center;
1616

1717
&__icon-wrapper {
18-
padding-right: calculateRem(4px);
1918
display: flex;
2019
align-items: center;
20+
height: $text-font-size-m * $base-line-height;
21+
padding-right: calculateRem(4px);
2122
}
2223

2324
@each $name, $color in $helper-text-types {
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
@use 'functions/calculate.rem' as *;
2-
@use 'variables';
2+
@use 'variables' as *;
33

44
html {
55
font-size: $base-font-size;
6-
line-height: 1.5;
6+
line-height: $base-line-height;
77
letter-spacing: calculateRem(0.12px);
88
}
99

1010
body {
11-
font-family: variables.$font-family;
11+
font-family: $font-family;
1212
}

packages/assets/src/scss/_variables.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
$transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1) !default;
99
$transition-duration: 0.4s !default;
1010

11+
// Root variables
12+
$base-line-height: 1.5 !default;
13+
1114
// Various component variables
1215
$border-radius-medium: calculateRem(8px) !default;
1316

0 commit comments

Comments
 (0)