-
Notifications
You must be signed in to change notification settings - Fork 75
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
Replace deprecated font redhat--monospace with basic PF's monospace #1178
Conversation
df08b33
to
cd20a13
Compare
Added pixel tests |
...is this screenshot the before or after? It's not clear. It has a bunch of problems (including font ones), which is why I'm asking. The issues related to this PR:
It should look like this (inside the box):
I see a few additional problems:
Restricting the width (we should probably do this with size anyway, just like we do elsewhere, to help indicate the relative size): Shaving down the size of the labels looks like this, which is nice, but it's inconsistent and could be a problem with translations: Bumping the gap to be another 1 PatternFly spacing units (equivalent to 16px) seems like the best approach here, perhaps: We'll want to open up issues for the additional set of problems and focus the rest of this PR on the font issues. |
Needs a rebase for pixel test changes which landed after the Makefile update. |
It looks like it's bold because patternfly uses RedHatMono for it, which seems to make it bold |
@garrett to avoid bold font, we can just use basic monospace: |
Another update, so it seems for some reason, in cockpit the class |
I filed an issue with PF about not being able to select a lighter font: patternfly/patternfly#5855 Until then, maybe we could work around this by defining our own font-weight, e.g.
@garrett WDYT? |
Why are you doing a 1-off patch to a PatternFly problem as a local and custom |
This fixes a discussed issue[1] where Patternfly's default monospace font gets incorrectly calculated as Red Hat Mono Light, which as 2 degrees thinner/lighter than medium. Updating our overrides weight values to the ones used by Red Hat Mono[2] pagckage should fix the issue, [1] cockpit-project/cockpit-machines#1178 (comment) [2] https://fontsource.org/fonts/red-hat-mono
This fixes a discussed issue[1] where Patternfly's default monospace font gets incorrectly calculated as Red Hat Mono Light, which as 2 degrees thinner/lighter than medium. Updating our overrides weight values to the ones used by Red Hat Mono[2] pagckage should fix the issue, [1] cockpit-project/cockpit-machines#1178 (comment) [2] https://fontsource.org/fonts/red-hat-mono
Ever since cockpit-project/cockpit#19516 was landed, the weight of of monospace now looks correct: |
The change looks great, but tests are a big train wreck. Due to the many affected retries? I run them once more to compare. |
pixel noise in the new reference. Retrying to compare which one it will be. |
PF dropped pf-v5-global--FontFamily--redhat--monospace since patternfly/patternfly@4ec21e34fc3
ffb64b1
to
ca2b68b
Compare
Yup, failed again in the same way, so I take it the original refs from this PR were outdated. I pushed the new ones |
The only recent plausible F38 update is libvirt-dbus |
PF dropped pf-v5-global--FontFamily--redhat--monospace since patternfly/patternfly@4ec21e34fc3
Example (see "Disk identifier")