-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Implement the font and background color feature #1457
Comments
Idea: usually you use the limited set o colors. It would be nice if the color pallet suggests you colors you already used or which are already applied in the document. In fact, this is where highlight and color features are similar: highlight feature might have an option to add a custom "highlights" in the runtime and add automatically colors/highlights which are already applied in the document. |
Just a short summary of the scope for our MVP: UI
Nice to haves
Followups not suitable for MVP
Config exampleSimplified config might look something like this: [
[ 'ff0000', '0f0', '00f' ],
'|',
[ 'f30', 'f30', 'f30', 'f30', 'f30', 'f30', 'f30' ],
[ 'f30', 'f30', 'f30', 'f30', 'f30' ],
[ 'f30', 'f30', 'f30', 'f30', 'f30', 'f30', 'f30' ],
[ 'f30', 'f30', 'f30', 'f30', 'f30' ]
] There should be also a possibility to specify custom labels. |
1. Color paletteChoosing default grid with 5 colors in a row, we shouldn't go crazy with color variations. 15 default colors25 default colors2. Color grid sizeI've researched others color/background background features and there are a lot of differences from google docs 16px to even 32px, I'm not quite sure if 25px fits well in our case. Anyway, still it will be possible to change this size via CSS Variable. 25px20px3. Remove button positionThere is question how often users will use this button - instead of using default color/background of text (black or white). Just an idea: with CSS TopBottom4. Focused single colorI decided to make a border as outline instead of inner border, it's more visible. |
@dkonopka what with "last color" visualisation. Does the toolbar icon will get some sort of color indicator on it? |
Also should there be any indicator that current selection has given color? |
@dkonopka Great research!
AFAIR we decided that MVP has a static icon.
Isn't the button pushed ("on") enough in the MVP? |
ok 👍
Am I understand you correctly that you meant status of split button? I wonder how clear for the user will be to distinguish difference between Another problematic case might be behaviour applying lastly used color.
And another question should "remove color" be treated as "last color" and should be possible to apply directly from splitbutton? |
With CSS Grid we can easy control it via variable, take a look and try to uncomment some variables: |
It's amazing sample :) I really like it and want to use it! |
I see two cases here: On one hand, we want a simple color configuration, right? In this case, the column number should be pre–defined IMO and as simple as possible. On the other hand, some people may want to configure the colors so they align in a palette, for instance, the grayscale in a single row, or different saturations of the same color in the same column. To do that, people must be able to define both the colors and the number of columns. I'm cool with the |
Is this a bug report or feature request? (choose one)
🆕 Feature request
The ckeditor5-highlight feature works with a pre-defined (finite, limited) set of markers/pens and works best with structured highlights, for instance, to establish a communication between a content creator and a proofreader in a document.
We've already had some feature requests suggesting that the Highlight feature is unsatisfactory for certain integrations, and a free text/background coloring tool is necessary, offering a full palette of colors without any restrictions, just like the CKEditor 4 feature. This feature would have a different (no) content semantics and a different UI/UX.
Related:
cc @Reinmar @dkonopka
The text was updated successfully, but these errors were encountered: