-
Notifications
You must be signed in to change notification settings - Fork 0
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
Track down unwanted text-transform: uppercase
in the block editor
#77
Comments
text-transform: uppercase
in the block editor
The code that's causing the problem is in https://github.com/WordPress/gutenberg/blob/167fac279339b37c28f73b56824eaae581a6a20b/packages/components/src/utils/base-label.ts |
Note that the |
The uppercasing affects other blocks. Here's a screenshot of a Checkbox in CoBlock's Request a Quote variation of the Form block. Note: CoBlock's code appears to violate the guidelines in the Accessibility concerns section of https://developer.mozilla.org/en-US/docs/Web/HTML/Element/label |
I have the same unwanted UPERCASE on my block control labels. And also the block editor tutorial shows the problem with "STARTING YEAR" in the editor for label property “Starting year”. |
I don't think we'll be able to do anything about this with regards to the block editor. I found out what was happening. So now we just have to live with it. |
Yes, the labelling of the controls should be in capital letters, see WordPress/gutenberg#42782, so I'll leave it at that - thanks. |
In jetpack.wp.a2z I've noticed that there are a number of instances of inline CSS with
text-transform: uppercase
.This is making it difficult to use the block editor, especially when the text being transformed is an input field and the content was originally created in mixed case.
In this example we see the text of the Jetpack Consent field being uppercased.
The inline style for the control's label is being applied to the Jetpack field label's contents.
Deselecting the
text-transform: uppercase
in the inspector we see the text in the case it was originally written.Here you can see that I'd edited it and typed an uppercase N to match what I could see.
Can we seNd you an email from time to time?
Also the labels in the Settings panels are being uppercased: eg Size, Default and Radius
With Gutenberg:
Without Gutenberg:
It's probably the same issue.
The text was updated successfully, but these errors were encountered: