playcanvas / pcui

UI component library for web-based tools
http://playcanvas.github.io/pcui
MIT License
669 stars 65 forks source link

Adding a `Button` directly to `document.body` loses PCUI font styling #233

Closed willeastcott closed 1 year ago

willeastcott commented 1 year ago

Describe the bug If you add a Button directly to an unstyled document.body, the button's fold appears to be Times New Roman.

To Reproduce Steps to reproduce the behavior:

  1. Run the Button example.
  2. See error

Expected behavior You would expect to see the font-regular font displayed.

Screenshots

image