Skip to content
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 color icon appears and disappears #20861

Closed
paaljoachim opened this issue Mar 13, 2020 · 7 comments
Closed

Text color icon appears and disappears #20861

paaljoachim opened this issue Mar 13, 2020 · 7 comments
Labels
[Feature] Rich Text Related to the Rich Text component that allows developers to render a contenteditable Needs Design Feedback Needs general design feedback. [Type] Enhancement A suggestion for improvement.

Comments

@paaljoachim
Copy link
Contributor

paaljoachim commented Mar 13, 2020

Continuing discussion from:
"Add option to add text color to specific text inside RichText"
#16014

Into a new issue. Where we can focus.

  1. Text color icon appears and disappears from toolbar.
  2. Bring colors by the block for some blocks: Bring colors by the block for some blocks #20197
  3. Background color issue here: Add a way to add inline text background color #20835

Text-color-icon-appear-disappear

Comments from:
@ellatrix
#16014 (review)

Looks good to me. Not sure if I like the conditional placement of the button, but we can experiment with that. Also think it would be nicer to consolidate the custom color popover, but also could be adjusted later.

@mapk
#16014 (review)

I totally agree with @ellatrix's comment. Having it appear and disappear is somewhat odd. But I just tested this out and it was working great. I'm all for getting this in and iterating later.

@afercia
#16014 (comment)

Saw this new feature today and I'd totally second that. I would expect to find controls where I saw them the first time. Instead, they just disappear and appear in a new place. Not to mention that, from an accessibility perspective, the accessibility team has pointed out several times that the continuous appearing / disappearing of controls is highly confusing.

I'd definitely recommend to further iterate on this soon.


@mtias mtias added [Feature] Rich Text Related to the Rich Text component that allows developers to render a contenteditable [Type] Enhancement A suggestion for improvement. labels Mar 13, 2020
@mapk
Copy link
Contributor

mapk commented Apr 14, 2020

@paaljoachim do you have a solution around keeping the color icon visible all the time? Does it just show the default color for the text until the user selects the custom color letters?

@mapk mapk added the Needs Design Feedback Needs general design feedback. label Apr 14, 2020
@MDWolinski
Copy link

An option I proposed is that the options (Bold, Italic, Text Color, Links, etc) show in the toolbar if they are used in the document (or the most recently used 3 or 4). If they are not used, then they can be collapsed into the dropdown menu.

@paaljoachim
Copy link
Contributor Author

paaljoachim commented Jan 10, 2021

I do think that the most used options such as Bold, Italic, Link should stay in the toolbar.
If others inside the "More rich text controls" are being used in a block than these should be added on to the toolbar.

Screen Shot 2021-01-10 at 18 19 25

--

Coloring a single word:
Screen Shot 2021-01-10 at 18 24 03

Default approach: Adds an icon - icon is removed when the red color word is deselected or another word has been selected.
Color-icon-no-icon

New suggested approach: Selecting any other word in the block still shows text color, but does not show the color of the default text.
Color-inline

Adds an icon - color is removed when the red colored word is deselected or another word has been selected.
Add-color-icon

I decided to add a prototype to get a feel for keeping the icon in place and just removing the red color below it when selecting another word.
https://www.figma.com/proto/DKczhwVe8ctklez0EKymO2/Add-Color-Icon?node-id=1%3A2&scaling=min-zoom

Accessibility concerns:
#16014 (comment)

"I would expect to find controls where I saw them the first time. Instead, they just disappear and appear in a new place. Not to mention that, from an accessibility perspective, the accessibility team has pointed out several times that the continuous appearing / disappearing of controls is highly confusing."

@jasmussen @mapk

@kellychoffman
Copy link
Contributor

Looks like this one has been updated (Text color icon has been moved and is always present) and is no longer an issue. 🎉Reopen if I am mistaken.

Screen Shot 2021-05-18 at 12 55 55 PM

@paaljoachim
Copy link
Contributor Author

Hey Kelly @kellychoffman

This is what I see:

Inline-color.mp4

Clicking the text that has the inline color shows the A with the red line below it. Clicking any other place the A is not seen.

WordPress 5.7.2.
Twenty Twenty One
Gutenberg plugin 106.1

@paaljoachim paaljoachim reopened this May 18, 2021
@jasmussen
Copy link
Contributor

Having lived with the current behavior for a while, I'm starting to think it's the best approach with the current design, and that simply showing the color icon always is not going to be a good user experience.

@ellatrix
Copy link
Member

Fixed in #21892.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Rich Text Related to the Rich Text component that allows developers to render a contenteditable Needs Design Feedback Needs general design feedback. [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

7 participants