Skip to content

Try a different pattern for the font size picker #17755

Closed

Description

@enriquesanchez

I'd like to propose we try a different direction that will help address the accessibility issues we've been encountering with previous attempts of the font size picker (#15319, #16148, #17418).

Screen Shot 2019-10-03 at 11 21 22 AM

While this solution takes a different direction, it covers all the requirements we need:

  • It's accessible
  • Visually shows the size of the options
  • Let's the user see which options is currently active

In addition, this solutions also informs the user of all the available options at a glance, without the need to interact with a custom select component or menu button in order to find out what's inside.

Activity

  1. added
    Needs Design Feedback
    Needs Dev
    on Oct 3, 2019
  2. mapk commented on Oct 3, 2019

    @mapk
    Contributor

    This is a good direction to try. Let's see if we can get this built rather quickly for WP 5.3. It will require some testing to ensure it's a good solution.

  3. removed
    Needs Design Feedback
    on Oct 3, 2019
  4. self-assigned this
    on Oct 3, 2019
  5. removed
    Needs Dev
    on Oct 3, 2019
  6. karmatosed commented on Oct 3, 2019

    @karmatosed
    Member

    I commented over on the PR, just to close that loop I will also comment here.

    Whilst, I understand the reason for exploring this, I do feel this is a problematic direction. It adds a pattern we haven't used yet but is similar to the styles. I also think if you consider adding styles and font sizes, that rapidly becomes a very complex interface to do something simple, change font size.

    I also have concerns over the cognitive load of that section right now with this added. If I am isolated in this feeling that's fine, but personally, it feels like a direction that needs deeper consideration.

  7. epiqueras commented on Oct 3, 2019

    @epiqueras
    Contributor

    I agree with @karmatosed, I'd go with @jasmussen's approach: #17759 (comment).

  8. epiqueras commented on Oct 3, 2019

    @epiqueras
    Contributor

    #17759 (comment)

    It could also be shown below it, as a preview.

    Anyway, it looks like we can use Downshift now and stick to the original design: #16473 (comment).

  9. gziolo commented on Oct 4, 2019

    @gziolo
    Member

    Whilst, I understand the reason for exploring this, I do feel this is a problematic direction. It adds a pattern we haven't used yet but is similar to the styles. I also think if you consider adding styles and font sizes, that rapidly becomes a very complex interface to do something simple, change font size.

    This is also something that theme developers can customize, so you might see there 10 options as well. In addition, people can use any text they like and any size they need so I'm afraid it won't scale.

  10. gziolo commented on Oct 4, 2019

    @gziolo
    Member

    @enriquesanchez, thank you for sharing this option. It looks like related PR was closed based on the feedback received, should we close this issue, too?

  11. added
    [Package] Components
    [Feature] UI Components
    on Oct 4, 2019
  12. mapk commented on Oct 4, 2019

    @mapk
    Contributor

    This is also something that theme developers can customize, so you might see there 10 options as well. In addition, people can use any text they like and any size they need so I'm afraid it won't scale.

    This was one of our early concerns as well. If theme devs did customize this, it could get unwieldy pretty quick.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

[Feature] UI Components[Package] Components

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions