-
Notifications
You must be signed in to change notification settings - Fork 10k
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
[Editor] Add a color picker with predefined colors for highlighting text (bug 1866434) #17359
[Editor] Add a color picker with predefined colors for highlighting text (bug 1866434) #17359
Conversation
/botio-linux preview |
f52697d
to
1eaf860
Compare
From: Bot.io (Linux m4)ReceivedCommand cmd_preview from @calixteman received. Current queue size: 0 Live output at: http://54.241.84.105:8877/644682722003ebf/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.241.84.105:8877/644682722003ebf/output.txt Total script time: 1.42 mins Published |
d2fff1b
to
9bc82b5
Compare
9bc82b5
to
0c0a04f
Compare
Something that would really help (and reduce the time it takes me to review this), given the size/scope of these changes, is a high-level overview of what's being changed and why here. Skimming this, there's a few things that I'm not totally sure of:
|
25d1b77
to
3a6ad34
Compare
I'm slowly starting to review this, but before looking in detail at the code I've got some observations based on playing with the preview in #17359 (comment) above.
|
3a6ad34
to
1d820c0
Compare
Hi @Snuffleupagus - UX chiming in here. Thanks for the review and feedback.
Thanks |
1d820c0
to
34bbd79
Compare
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.
One thing that I noticed, which might be on purpose but feels a little bit inconsistent, is that after you'd added a highlightEditor its color can only be changed with the editToolbar
-dropdown.
However, trying to change the color from the viewer-toolbar does nothing for a currently selected highlightEditor.
Yep it's on purpose: the color in the main toolbar is the default color to use. |
94f5084
to
e8ff0c1
Compare
…ext (bug 1866434) The doorhanger for highlighting has a basic color picker composed of 5 predefined colors to set the default color to use. These colors can be changed thanks to a preference for now but it's something which could be changed in the Firefox settings in the future. Each highlight has in its own toolbar a color picker to just change its color. The different color pickers are so similar (modulo few differences in their styles) that this patch introduces a new class ColorPicker which provides a color picker component which could be reused in future editors. All in all, a large part of this patch is dedicated to color picker itself and its style and the rest is almost a matter of wiring the component.
e8ff0c1
to
ff23d37
Compare
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.
r=me, thank you!
/botio integrationtest |
From: Bot.io (Linux m4)ReceivedCommand cmd_integrationtest from @calixteman received. Current queue size: 0 Live output at: http://54.241.84.105:8877/b1bb3b7f2d55957/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_integrationtest from @calixteman received. Current queue size: 0 Live output at: http://54.193.163.58:8877/90fc1d49b325552/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.241.84.105:8877/b1bb3b7f2d55957/output.txt Total script time: 5.77 mins
|
From: Bot.io (Windows)FailedFull output at http://54.193.163.58:8877/90fc1d49b325552/output.txt Total script time: 13.93 mins
|
The doorhanger for highlighting has a basic color picker composed of 5 predefined colors
to set the default color to use.
These colors can be changed thanks to a preference for now but it's something which could
be changed in the Firefox settings in the future.
Each highlight has in its own toolbar a color picker to just change its color.
The different color pickers are so similar (modulo few differences in their styles) that
this patch introduces a new class ColorPicker which provides a color picker component
which could be reused in future editors.
All in all, a large part of this patch is dedicated to color picker itself and its style
and the rest is almost a matter of wiring the component.