-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Add/relative units for font size #25825
Conversation
I have a difficult time determining which is OFF and which is ON, especially since the one you say is OFF has a box that says Custom. |
@joyously I updated the description. You're right that in both cases it the label is |
Can you show how it looks now? My main concern is that a rounded box with a circle in it does not indicate ON or OFF to me. How about a checkbox, which is fairly standard and easy to understand? Or just a value for Custom in the dropdown, that then allows input of the custom value. |
@joyously Here is how the sizing options currently look: and here's how it looks with the changes from this PR I think the toggle is fairly standard way of representing the state of the component. For example the "airplane mode" toggle on mobile devices is now ubiquitous, so my assumption is that users will find it familiar and easy to use. |
Thanks for the screenshots. The thing you think is standard might be common, but it certainly isn't friendly. It looks to me like a strange button because of the color, but that's only when ON. I can't tell if the blue is indicating the current state or where to click to activate it. It's more cognitive load than is necessary. |
I agree with @kirilzh. I believe that using the toggle button will be more consistent with the current design of the settings box, the Drop cap functionality uses the same type of toggle button as seen in the provided screenshots. |
Yes, it's the same as others, which are also bad. But this is the one asking for design feedback so I mentioned it here. |
e7d59f6
to
ade7684
Compare
@kirilzh could you please rebase this PR? I wanted to check it out again today and see how we can move it forward, but the font-size-picker has changed a bit since the PR was first submitted so it will have to be updated first 👍 |
Closing this one since it no longer applies. |
Description
Fixes: #23323
This PR adds the option to set custom CSS font sizes to font-size-picker component by adding a switch toggle underneath
Font sizes
dropdown.Currently, when the user sees a dropdown with the predefined font-sizes, an adjacent
custom
field which accepts only numbers and shows the font size using pixels for units of measure, and the reset button which clears the custom field and sets font size todefault
.To allow for writing more complex sizing formulas in this PR adds a toggle which when activated removes the font-size dropdown and renders a large custom field which in addition accepts string values.
How has this been tested?
This is a draft still so will add tests when changes are accepted.
Screenshots
Toggle OFF.
This is the default state of the toggle.
Toggle ON.
Types of changes
New feature (non-breaking change which adds functionality).
Checklist: