Skip to content

Commit 322944b

Browse files
authored
style(gcds-input + gcds-textarea): add mobile font size to input & textarea (#975)
* chore: update tokens package * style(gcds-input + gcds-textarea): add mobile font size to input & textarea
1 parent 5fcce47 commit 322944b

4 files changed

Lines changed: 15 additions & 7 deletions

File tree

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/web/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"@babel/preset-typescript": "^7.21.0",
5353
"@bgotink/playwright-coverage": "^0.3.2",
5454
"@gcds-core/fonts": "^1.0.0",
55-
"@cdssnc/gcds-tokens": "^2.13.0",
55+
"@cdssnc/gcds-tokens": "^2.13.1",
5656
"@playwright/test": "^1.52.0",
5757
"@stencil/angular-output-target": "file:../../utils/angular-output-target",
5858
"@stencil/playwright": "^0.2.1",

packages/web/src/components/gcds-input/gcds-input.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,14 @@
2020
:host .gcds-input-wrapper {
2121
max-width: 75ch;
2222
width: 100%;
23-
font: var(--gcds-input-font);
23+
font: var(--gcds-input-font-desktop);
2424
color: var(--gcds-input-default-text);
2525
transition: color ease-in-out 0.15s;
2626

27+
@media only screen and (width < 48em) {
28+
font: var(--gcds-input-font-mobile);
29+
}
30+
2731
input {
2832
display: block;
2933
min-width: var(--gcds-input-min-width-and-height);

packages/web/src/components/gcds-textarea/gcds-textarea.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,14 @@
2020
:host .gcds-textarea-wrapper {
2121
width: 100%;
2222
max-width: 75ch;
23-
font: var(--gcds-textarea-font);
23+
font: var(--gcds-textarea-font-desktop);
2424
color: var(--gcds-textarea-default-text);
2525
transition: color ease-in-out 0.15s;
2626

27+
@media only screen and (width < 48em) {
28+
font: var(--gcds-textarea-font-mobile);
29+
}
30+
2731
textarea {
2832
display: block;
2933
min-width: 50%;

0 commit comments

Comments
 (0)