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

Fix Button font when adding to body element #235

Merged
merged 1 commit into from
Jan 2, 2023
Merged

Conversation

willeastcott
Copy link
Contributor

@willeastcott willeastcott commented Jan 1, 2023

The Button CSS was inheriting font-family from the parent element, in this case document.body. This was the default font and was overriding the font-regular font specified by pcui-element here. If the button is a child of any other PCUI element, the bug would not occur.

Fixes #233

@willeastcott willeastcott added the bug Something isn't working label Jan 1, 2023
@willeastcott willeastcott requested a review from a team January 1, 2023 23:11
@willeastcott willeastcott self-assigned this Jan 1, 2023
@willeastcott willeastcott changed the title Fix Button font when adding to body element Fix Button font when adding to body element Jan 1, 2023
@willeastcott willeastcott merged commit 2f8477a into main Jan 2, 2023
@willeastcott willeastcott deleted the fix-button-font branch January 2, 2023 08:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adding a Button directly to document.body loses PCUI font styling
2 participants