Skip to content

Represent default font size in slider #44229

Closed

Description

@mtias

Now that we have more concrete mechanisms for knowing what is the default font size coming for text from the global styles tree, can we represent it on the segmented control if it matches one of the preset sizes?

image

I'd imagine we would use a lighter gray for these cases.

Activity

  1. added
    Needs Design
    Global Styles
    [Feature] Design Tools
    [Feature] Typography
    on Sep 16, 2022
  2. jasmussen commented on Sep 20, 2022

    @jasmussen
    Contributor

    Here are a few options including a lighter gray:

    Known but not explicitly set

    Another option is to show a little asterisk or other indicator:

    Known but not explicitly set

    Or a combination?

    Known option 3

    None of these seem a clear win, though I'd tend to agree the light gray background is probably best out of these.

  3. added
    Needs Design Feedback
    and removed
    Needs Design
    on Sep 20, 2022
  4. jameskoster commented on Sep 29, 2022

    @jameskoster
    Contributor

    Isn't the label alone adequate? It seems more important for the default size to be selected when the control is present?

    label

  5. jasmussen commented on Sep 29, 2022

    @jasmussen
    Contributor

    Oh interesting, I read the brief as when no font size is set, suggest which point on the slider it would match. 🤔

  6. jameskoster commented on Sep 29, 2022

    @jameskoster
    Contributor

    If no font size is set (it is inherited from css), then we can't determine which value it would match? 🤔

    I saw this as more about connecting the setting in global styles to the control we find when editing locally. Apologies if that's separate.

  7. jasmussen commented on Sep 29, 2022

    @jasmussen
    Contributor

    The font size can be set in Global Styles, in which case we would know whether it matched a given notch in the slider.

  8. jameskoster commented on Sep 29, 2022

    @jameskoster
    Contributor

    We should. But it hasn't been implemented here. I think that's the issue?

    As an example, here's my font size setting from the Typography section of global styles:

    Screenshot 2022-09-29 at 14 45 58

    But when I go to edit the Paragraph block in global styles, or just select a paragraph while editing a post, here's what I see:

    Screenshot 2022-09-29 at 14 45 44

    The label tells me the default size is set, but the corresponding segment (M) isn't highlighted.

  9. jasmussen commented on Sep 29, 2022

    @jasmussen
    Contributor

    Right, that's the baseline, and works okay, I think the question is whether we need more than that.

  10. jameskoster commented on Sep 29, 2022

    @jameskoster
    Contributor

    Indeed, and my suggestion was that if the correct value is highlighted in the control, isn't the label denoting the default adequate? So if I select a paragraph in a post, I see this in the Typography panel:

    Screenshot 2022-09-29 at 15 03 55

  11. mtias commented on Sep 29, 2022

    @mtias
    MemberAuthor

    Selecting M explicitly for a paragraph is not the same as M being the inherited default when nothing is locally set but M is the most immediate value passed in the tree.

  12. jameskoster commented on Aug 2, 2023

    @jameskoster
    Contributor

    I believe #49278 captures this in a more holistic way. All controls need a solution to this problem.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Global StylesNeeds Design Feedback[Feature] Design Tools[Feature] Typography

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions