Problem/Motivation

Claro's --font-size-xs is too small for me to use comfortably on my high-resolution screen. However, if I use the browser feature to zoom text, some other text becomes too large for me to use comfortably and, if I zoom enough times, it changes the layout. It would be good to allow users the option to always override --font-size-xs with --font-size-s. I recognize this can be used in user style sheets, however, Chrome and Edge do not support user style sheets, and I would prefer not to use browser plug-ins to accomplish this for security reasons.

Similarly, while I could zoom in, that affects all pages on the website, so would affect my view of our website pages, not just the administrative user interface, and also makes all content larger - including headings, which become excessively large.

Actually, some users may even find --font-size-s too small, so it would be good to be able to choose whatever the regular font size as the minimum size for all content. I don't understand the rationale for making instructions smaller, since if someone needs them it's important that they be able to understand them without barriers to comprehension such as having to make out tiny type.

Steps to reproduce

1. Go to simplytest.me
2. In the field, type core
3. Choose Drupal core
4. Press the button to create the website
5. Login as admin
6. Go to /admin/structure/types/manage/page/fields/node.page.body

Desired result:
"Instructions to present to the user below this field on the editing form.
Allowed HTML tags: <a> <b> <big> <code> <del> <em> <i> <ins> <pre> <q> <small> <span> <strong> <sub> <sup> <tt> <ol> <ul> <li> <p> <br> <img>
This field supports tokens."
is the same size as "Required field", without making other content larger.

Current result:
"Instructions to present to the user below this field on the editing form.
Allowed HTML tags: <a> <b> <big> <code> <del> <em> <i> <ins> <pre> <q> <small> <span> <strong> <sub> <sup> <tt> <ol> <ul> <li> <p> <br> <img>
This field supports tokens."
is noticeably smaller than other content such as "Required field".

I don't have any examples of where --font-size-xxs is used, but if --font-size-xs causes me a problem then I expect --font-size-xxs certainly will. Shrinking text below the base size is generally problematic for me.

Proposed resolution

Add a preference for minimum size to the user page /user/[userNumber]/edit

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

CommentFileSizeAuthor
#11 3412439-11.patch1.61 KBnayana_mvr
#11 3412439-test.gif2.04 MBnayana_mvr

Issue fork drupal-3412439

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

Charles Belov created an issue. See original summary.

charles belov’s picture

Issue summary: View changes
charles belov’s picture

Title: Give users option to override Claro --font-size-xs with --font-size-s » Give users option to override Claro --font-size-xs and --font-size-xxs with --font-size-s
Issue summary: View changes
Parent issue: » #3032981: [meta] Accessibility guidelines for Claro
charles belov’s picture

Gauravvvv made their first commit to this issue’s fork.

gauravvvv’s picture

Status: Active » Needs review
smustgrave’s picture

Status: Needs review » Active

Not sure what the MR is doing but doesn't match the proposed solution. Putting back to active because of that.

nayana_mvr’s picture

The proposed solution says

Add a preference for minimum size to the user page /user/[userNumber]/edit

But for which all text should that font size be applied? Is it like, if there are texts with font size below the specified font size in the user page, then those text should use the font size given in the user page?
Another apporoach I would propose is to create a checkbox in user page enabling which will use --font-size-s in places where --font-size-xs and --font-size-xxs are currently used.

charles belov’s picture

Actually it could be a drop-down for minimum admin UI font size:

Extra Extra Small (default)
Extra Small
Small
Unreduced

nayana_mvr’s picture

StatusFileSize
new2.04 MB
new1.61 KB

I just tried a mock up of how the form field will look like in the user profile.

test

This require more work as it will change all the font size of admin ui text based on the value selected in user profile.

charles belov’s picture

@nayana_mvr That mock-up is exactly what I have in mind, thank you. I would be likely to use the Unreduced setting.

charles belov’s picture

I'll note "Suggest the minimum font size for Admin UI." might be too small for some people to read if they haven't set it. Although I realize they can use browser zoom to read it, make the setting, then reset browser zoom to actual size once they've set it.

Version: 11.x-dev » main

Drupal core is now using the main branch as the primary development branch. New developments and disruptive changes should now be targeted to the main branch.

Read more in the announcement.