Skip to content

Commit

Permalink
Base styles: Use the font size set in theme.json for input elements.
Browse files Browse the repository at this point in the history
  • Loading branch information
ryelle committed May 15, 2024
1 parent 634c252 commit 0c7ab0b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ textarea {
border-radius: var(--wp--custom--form--border--radius);
box-shadow: var(--wp--custom--form--color--box-shadow);
font-family: inherit;
font-size: var(--wp--custom--form--typography--font-size);
line-height: var(--wp--custom--form--typography--line-height);
padding-inline: var(--wp--custom--form--padding--inline);
padding-block: var(--wp--custom--form--padding--block);

Expand Down
3 changes: 2 additions & 1 deletion source/wp-content/themes/wporg-parent-2021/theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,8 @@
"boxShadow": "none"
},
"typography": {
"fontSize": "var(--wp--preset--font-size--small)"
"fontSize": "var(--wp--preset--font-size--small)",
"lineHeight": "var(--wp--custom--body--small--typography--line-height)"
},
"active": {
"color": {
Expand Down

0 comments on commit 0c7ab0b

Please sign in to comment.