-
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
Editor pop-up editing symbols need to be theme BG color neutral #6451
Comments
This can become a theme responsibility. I get decent results on any darker bg with:
|
I believe this relates to #6406. |
One more note: I find the border+bg for the insertion-point-inserter to be a better implementation than the pure bg color for the bar. Just seems to stand out a little better. I would recommend that the team consider a tweak to the inserter line. |
@weavertheme Does this issue still need more work or can it be closed? |
I think this is still a seriouos issue. If the theme has a dark background (a good test: bg hex values less than #888888 are "dark") AND styles the BG in the editor, the default control elements are nearly impossible to see. For example, the vertical 3 dots, the trash can, the + add new block, and so on. But if the theme is adding style to the editor, then it could also include the CSS to re-style the above block editor styling. My concern is that these may change, or new elements might be added, making it hard to keep up with the necessary custom styling. |
So, this PR actually solves the situation for both light and dark themes: #6406 (comment) Only — the dark theme feature isn't yet enabled. You can test it by providing an editor style with a dark background, and manually in the web inspector, adding In other words, the way to address this issue is to enable those dark styles. I imagine two ways of doing this:
@youknowriad do you have any ideas on how best to do this? |
This option would have my vote |
Sounds good. Is that something I can build? ;) |
@jasmussen You can build everything :). We can pair if you need help |
✊ |
This fixes #6451. This PR enables a new command to themers. They can now add `add_theme_support( 'dark-theme' );` in order to ask the editing canvas to be friendly to dark themes. What this does is add a body class to the editor, `is-dark-theme`, which enables already present color changes to the side UI and borders, that are friendly to dark themes.
Created #9683 to fix this. |
* Add dark editor style support This fixes #6451. This PR enables a new command to themers. They can now add `add_theme_support( 'dark-theme' );` in order to ask the editing canvas to be friendly to dark themes. What this does is add a body class to the editor, `is-dark-theme`, which enables already present color changes to the side UI and borders, that are friendly to dark themes. * Update documentation. * Update theme support docs. * Use dark-editor-style instead. Hopefully this will help prevent confusion.
Issue Overview
There are a lot of pop-up symbols used in the editing content - the insert line, the block type symbols, the circled +, the move up down, etc. etc.
The color stylings for these symbols work okay for a white or light theme BG, but with a dark bg color (wihite on black, for example), then they simply become nearly invisible (especially when hovering). If the background of the theme is gray, then they can totally disappear.
Steps to Reproduce (for bugs)
Expected Behavior
Current Behavior
Possible Solution
Find a color styling that will work with all BG colors. I would suggest putting solid bg on each item - like just a bit gray from white. Then the symbols would show on all bg colors.
Force the theme to implement alternate editor symbol styling. If this is the solution, then providing a list of all the classes needed for all the editor symbols would really help. I didn't track down if the styling classes for the pop-up symbols are the same as the sidebars, but they must be different if a theme is to be able to style them separately.
A near final release of my theme with integrated Gutenberg support is available at:
Weaver Xtreme 4.0 Beta
Try with the Black and White subtheme.
Screenshots / Video
Sorry, my screen capture software has trouble grabbin popup items that go away when you move the mouse.
Related Issues and/or PRs
Todos
The text was updated successfully, but these errors were encountered: