Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

font-variation-settings is not inherited for button, input, etc. when using variable fonts #71

Open
rahatbd opened this issue Jul 12, 2023 · 0 comments

Comments

@rahatbd
Copy link

rahatbd commented Jul 12, 2023

Should using font: inherit be appropriate so that font-variation-settings is inherited by button, input, etc. if the font is variable?

body {
    font-family: "Recursive", sans-serif;
    font-variation-settings: "CASL" 1, "CRSV" 1, "slnt" var(--recursive-slant, 0), "MONO" var(--recursive-mono, 0);
}
button,
input,
optgroup,
select,
textarea {
-       font-family: inherit; /* 1 */
+       font: inherit; /* 1 */
	font-size: 100%; /* 1 */
	line-height: 1.15; /* 1 */
	margin: 0; /* 2 */
}
@rahatbd rahatbd changed the title font-variation-settings is not inherited for button, input, etc. when using variable fonts font-variation-settings is not inherited for button, input, etc. when using variable fonts Jul 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant