-
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
Text mode: title and content textarea focus style #1837
Comments
Worth noting the post title is shared by visual and text mode. There are classes to target visual/text modes though. Also, adding a focus style for the text mode content area would probably require to review a bit the textarea size/paddings. See in the screenshot below, where the red outline is just to highlight the current elements size: |
Not sure why the gutenberg/editor/post-title/style.scss Lines 13 to 29 in 46ae03c
/cc @mtias |
Thank you |
@abdul as long as it's a shape with a sufficient color contrast ratio with the background, it's ok for accessibility. As per the design part, I'll leave that decision to the team leads. /cc @jasmussen @mtias |
@afercia Can you please review my PR? |
@abdul as I said above, this needs design feedback from the design team before moving on 🙂 |
@afercia Please don't mind my restlessness. I will wait for feedback. Thank you |
Is this closed by #4803 ? cc @jasmussen |
I would suggest yes. Closing, we can always reopen if there are edgecases that haven't been addressed. |
* Add ref to gutenberg * Update ref after adding disableScrollViewPanResponder * Update ref after adjusting height * Update ref to point to gutenberg master
In text mode, the title and content textarea elements should have a better focus style. Since text mode is supposed to be the most accessible one, and for some users will be the only mode that empowers them to enter content without barriers, I'm not sure the current behavior of the focus style is ideal.
when focus is on the title and the title is empty, the component gets an
is-selected
CSS class that applies a light gray outline#e2e4e7
to theh1
wrapping the textarea:#e2e4e7
doesn't have a sufficient color contrast with the background and when users start typing, the focus style disappears completely:The content textarea has no focus style at all:
The text was updated successfully, but these errors were encountered: