dotkom / onlineweb-frontend

Next generation frontend for onlineweb
https://online.ntnu.no
23 stars 9 forks source link

All text inherits the same font size #456

Open PeterRydberg opened 4 years ago

PeterRydberg commented 4 years ago

Describe the bug
All text on OWF is using the same font size, so no text customization other than font-family is actually being used. I haven't looked at the code to determine why, but judging by inspection of the elements, a big chunk of CSS (yellow arrow) overrides what should be the real font size of titles (red circle). Ref. image below. Disabling font: inherit solves the issue temporarily site-wide, as far as I can tell.

To Reproduce Steps to reproduce the behavior:

  1. Go anywhere
  2. Look at titles, subtitles, etc.
  3. All text is (likely) computed 16px

Expected behavior Have some chunky titles in OWF again.

Screenshots image

Desktop (please complete the following information):

Smartphone (please complete the following information):

FluidSense commented 4 years ago

This might be related to #412, as one of the warnings is related to createGlobalStyle. If I'm not mistaken, that large chunk is a "reset css"-chunk