-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Typography Tools: Tracking #34345
Comments
I noticed this while testing changes removing
Fixed in #34515 TL;DR When the typography tools were grouped the letter-spacing support key wasn't updated as per the others. |
Here's an update on some of the typography components and behaviors. In particular regarding the Size component. Below there's a bit more detail around aspects not considered before, like variants on number of values (segmented UI for 4 or 5 values, and dropdown for >5), types of values if we want to consider t-shirt, tooltip to contextualize abstracted values, and toggling to input custom values. Relevant to #34574 |
👋 - I've started looking at the font size picker and my first issue that is missing the designs is the |
It would be great if you could coordinate with @mirka , she's also been looking at this. |
Regarding |
Is there an expectation to be able to reset every control or just the font size one? I think something like the following solution could work for components that span the entire column (in this example, 24 is the default value) |
The resetting comes from the tools panel and allows resetting each item. You can see it in this video: |
Oh, thanks, that makes sense… showing reset buttons for several components would make panels look very busy. |
@pablohoneyhoney Are there public Figma links for these mockups, by the way? I see that the components are available, but I'm wondering if there's another mockup file I don't know about. |
I'm trying to work out whether these two controls are supposed to be in Global Styles or not. I can see that Letter spacing was added to block settings but not Global Styles in #31118. Not sure if that was an intentional omission. @aaronrobertshaw tells me that Letter case used to exist in Global Styles but was removed because it was felt that this shouldn't be something that is controlled at such a high level. At any rate it would be good to revisit these decisions cc. @WordPress/gutenberg-design. |
They should be available for headings in the global context |
As discussed in #42718, this heading level switcher needs to have One possibility is to make a new TabPanel component (or style variant) that looks like a 32px height ToggleGroupControl — though there hasn't been a confirmed decision or prioritization on this yet from the design side. We can move forward with this if we can get confirmation that this is sufficient visual affordance for a user to distinguish between a |
The tab-panel that looks like a segmented control, if it's super quick to build, seems like we should just knock it out! But with a freeze in a few weeks, of course it should have lower priority than anything that needs to go in 6.1. |
Has there been an accessibility check on making it a TabPanel? If it changes a value, my instinct would be that TabPanel is the wrong thing. Usually tabs don't have such an effect, they're just a way to navigate through information. It may need to be another component that looks like a TabPanel. |
In this case in the Global Styles (Typography ▸ Headings), it isn't changing a value, just flipping between views. (It does look like a value selector on first sight, which is exactly why we need to differentiate 😄) |
I agree with this. If we have 'tabpanels that look like segmented controls' and/or 'segmented controls that look like tabs' then we risk creating an unpredictable UX. A style variation for tabs that is 'secondary' in terms of visual hierarchy might be good to explore. This would be useful in situations where we have nested tabs as well. |
I don't think so. The block variation switcher behaves like a |
I mean the semantic role in terms of how they are represent from the block API perspective — we have registered heading levels as variations of headings — which means accessing them could be presented as separate blocks or the quick variations selection. This also goes for selecting the right heading element in the block inspector on a block instance. |
Re: #42782 I see that the code's been merged so I'm commenting here. The changes to make the labels uppercase have introduced a problem with Jetpack's Field consent block. In the block editor, the text is all uppercased, which makes it difficult to edit. See also bobbingwide/bobbingwide#77 Elsewhere it's been suggested that using |
Replied in #42782 (comment) 👍 |
I've completed most of the items in #34345 (comment) and in the issue description. The remaining items are, I think, fairly marginal and not worth prioritising over #33094 which is the key focus for the editor team. Here's how the Typography panel now looks in Kapture.2022-11-03.at.09.33.46.mp4I think we can close this overview issue out and use smaller bug/enhancement issues for any further iteration that's required. |
Tools:
Mockup:
Components
ToolsPanel
Grid
components for layoutToolsPanel
's a11y #38059ToolsPanel
to render typography tools.ToolsPanel
( PR: #35451 )TypographyPanel
component using the components that are already available (similarly to what done for theDimensionsPanel
). Use this component as a "living reference" for iterating on each componentToggleGroupControl
: asses if it fulfills all design/UX requirementsCustomSelectControl
may be used for the custom dropdownCustomSelectControl
when no initialvalue
is set #34490)CustomSelectControlOption
component)?FontSizePicker
(and thereforeUnitControl
andRangeControl
) need any amends / design updatesToolsPanel
reset functionalityNumberControl
:step="any"
inNumberControl
andRangeControl
#34816 (related PR Support "any" step in NumberControl and RangeControl #34542)shift
key increments inNumberControl
andRangeControl
#34817ToggleGroupControl
value
is undefined #35382FontAppearanceControl
fieldset
wrapper #35461NumberControl
COLORS.ui.border
? (The mockups specify #bbb, a color that seems to be nonexistent in the current codebase. Unclear how this ties into the existing color scheme)When using predefined font-size value, the font size controls change depending on how many values need to be displayed
Integration
Design
The text was updated successfully, but these errors were encountered: