Respect browser font size instead defining a fixed px size
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 36.9k
- Forks
- 5.2k
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 713
Description
How to use GitHub
- Please use the 👍 reaction to show that you are interested into the same feature.
- Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
- Subscribe to receive notifications on status change and new comments.
Is your feature request related to a problem? Please describe.
Currently Nextcloud ignores the browser setting for the primary font size and defines a default font size of 15px. This means, nevertheless, which default font size I set as a user, all apps base on 15px font size.
Out of accessibility reasons I wonder, if it would be a good decision to get away from fixed px definitions to a relative font size by using rem and em.
Describe the solution you'd like
- Define a default font-size of 16px as used aqs the default by most of the browsers.
- Change font size definitions from px to rem
- Change any width (and maybe heights) to be calculated from the font size
- Same for margins, paddings and other elements like borders
- Define media queries by em (or rem, if safari has no more issues with that)
- Adopt this to nextcloud-vue and other libs
Additional context
This means some good planning and communication, since apps have to follow this change.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing how the current 15px font size and other px-based dimensions are defined across Nextcloud and nextcloud-vue, then assess the browser and Safari media-query considerations mentioned. Done means a coordinated, documented migration to relative font sizing and related dimensions across the affected apps and libraries, with responsive behavior preserved.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- css
- Domain
- accessibility, design, frontend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 20/100