-
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
Fix placeholder positioning #1477
Conversation
Hmm. Impressive! Seems to work well for me. 👍 👍 |
e623ca1
to
8210a35
Compare
It's so silly! Don't know why I didn't think about this earlier. Added an |
f998488
to
a3c2142
Compare
a3c2142
to
212f395
Compare
Fixed some multi-line bugs. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems to work as intended. Nice work 👍
className="blocks-editable__tinymce" | ||
style={ style } | ||
> | ||
{ inline ? placeholder : <p>{ placeholder }</p> } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Curious the a11y impact of having placeholder both as aria-label
of the TinyMCE and as the content of the adjacent placeholder node. Should this be aria-hidden
perhaps?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good question! What are your thoughts, @afercia?
key={ key } | ||
/> | ||
{ this.state.empty && | ||
<Tagname | ||
className="blocks-editable__tinymce" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wondering if we should include a modifier class here so reading the stylesheet is more obvious the intention on the .blocks-editable__tinymce + .blocks-editable__tinymce
styling.
I'm not sure I'm able to fully follow 🙂 not so familiar with this part and with what NVDA instead tends to announce as and it does announce the aria-label. So what happens, in a few words? However, I'm not sure we should use This could be confusing, as the aria-label text in this scenario is not so appropriate. Wondering how to improve the overall way editable regions are exposed to assistive technologies, will open a separate issue. |
…droid-8828 Hotfix for WP-Android #8828 fix - Just upgrade Aztec version
Alternative fix for #1247.
Yay! (I think)