Skip to content

Commit

Permalink
fix: add mobile font size to search component (#640)
Browse files Browse the repository at this point in the history
* fix: add mobile font size to search component

* chore: add new tokens package version
  • Loading branch information
daine authored Sep 13, 2024
1 parent 0a33996 commit 2f8efa3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"@babel/core": "^7.20.12",
"@babel/preset-env": "^7.20.2",
"@babel/preset-typescript": "^7.21.0",
"@cdssnc/gcds-tokens": "^1.18.1",
"@cdssnc/gcds-tokens": "^1.19.0",
"@fortawesome/fontawesome-free": "^6.3.0",
"@stencil/angular-output-target": "file:../../utils/angular-output-target",
"@stencil/postcss": "^2.1.0",
Expand Down
5 changes: 4 additions & 1 deletion packages/web/src/components/gcds-search/gcds-search.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@
width: 100%;
height: auto;
min-height: var(--gcds-search-min-width-and-height);
font: var(--gcds-search-font);
font: var(--gcds-search-font-desktop);
@media only screen and (width < 48em) {
font: var(--gcds-search-font-mobile);
}
padding: var(--gcds-search-padding) !important;
background-color: var(--gcds-search-default-background);
color: var(--gcds-search-default-text);
Expand Down

0 comments on commit 2f8efa3

Please sign in to comment.