Skip to content

Commit ee806a4

Browse files
authored
Merge pull request #861 from badejayayesubabu/SURF-2203
refactor(text-input): implement design tokens spec
2 parents c68b7b3 + dde45ce commit ee806a4

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

src/scss/components/text-input/_index.scss

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ hx-text-control {
6262
-ms-grid-column: 2;
6363
-ms-grid-row: 2;
6464
grid-area: control;
65-
height: 2rem;
66-
min-width: 8rem; // ~16 chars
67-
padding: 0 0.75rem;
65+
height: $rax-spacing-800;
66+
min-width: 8rem; //there is no token for min width
67+
padding: $rax-spacing-0 $rax-spacing-300;
6868
}
6969

7070
> .hxPrefix {
@@ -76,7 +76,7 @@ hx-text-control {
7676
-ms-grid-row: 2;
7777
grid-area: prefix;
7878
justify-self: $justify;
79-
margin-right: 0.25rem;
79+
margin-right: $rax-spacing-100;
8080
}
8181

8282
> .hxSuffix {
@@ -88,7 +88,7 @@ hx-text-control {
8888
-ms-grid-row: 2;
8989
grid-area: suffix;
9090
justify-self: $justify;
91-
margin-left: 0.25rem;
91+
margin-left: $rax-spacing-100;
9292
}
9393

9494
> p,
@@ -137,9 +137,10 @@ hx-text-control {
137137
}
138138

139139
> p.hxErrorText {
140-
color: $red-status-500;
141-
font-size: 0.75rem;
142-
margin-top: 0;
140+
color: $rax-component-input-error-border-bottom-color;
141+
color: var(--hxTextControl-hxErrorText, $rax-component-input-error-border-bottom-color);
142+
font-size: $rax-font-size-50;
143+
margin-top: $rax-spacing-0;
143144
width: 100%; // for IE11
144145
}
145146
}

0 commit comments

Comments
 (0)