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

add body font-size changer #961

Closed
wants to merge 231 commits into from

Conversation

LordSimal
Copy link

Refs: #960

This adds 4 Buttons at the top right of the coverage page to let the user choose which kind of font-size they prefer.

Currently there is

  • small (0.75em)
  • medium (1em) which is default Browser behavior (16px)
  • large (1.5em)
  • xlarge (2em)

2022-11-20_14-08-43 (1)

The way how this is saved across requests is done via localstorage and therefore currently requies JS to be executed.

This also introduces a small CLS jump. This could be mitigated via implementing it via cookies and adding the correct data-attribute to the body in PHP beforehand.

@sebastianbergmann
Copy link
Owner

Thanks! Can you send this against the 9.2 branch, please? A tweak such as this is safe to to make in a stable branch.

@LordSimal LordSimal changed the base branch from main to 9.2 November 20, 2022 13:16
@LordSimal LordSimal closed this Nov 20, 2022
@LordSimal LordSimal deleted the main-font-size branch November 20, 2022 20:20
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

Successfully merging this pull request may close these issues.

5 participants