User tests: Successful: Unsuccessful:
Pull Request for Issue #42148 and #41801 .
Supports dark mode detection for both tinymce and codemirror. Unlike the template which will actually flick over immediately once the OS is changed this will not change until the page is next reloaded. For codemirror this may be possible in the future as outlined in the todo in the code comment. But at the moment I don't believe this is possible for tinymce.
I've reused the same data attribute that @Fedik is suggesting in #42221 (but I still disagree with the concept of a toggle in that PR - but this doesn't block that or alter that PR in any way). But the data attribute will be required on the body element to support this
Open the editor in both light and dark modes. Before it would always open in light mode. Now it will match whatever the template is using on page load.
Note that casseopia which doesn't support automatic dark mode remains having editors only loaded in light mode.
Please select:
Documentation link for docs.joomla.org:
No documentation changes for docs.joomla.org needed
Pull Request link for manual.joomla.org: joomla/Manual#206
[] No documentation changes for manual.joomla.org needed
Status | New | ⇒ | Pending |
Category | ⇒ | Administration Language & Strings Templates (admin) Repository NPM Change JavaScript Layout Front End Plugins |
Title |
|
Labels |
Added:
Language Change
NPM Resource Changed
PR-5.0-dev
|
I have tested this item ✅ successfully on b8eb1b7
Tested on Firefox with a dark mode toggle extension
I have tested this item ✅ successfully on b8eb1b7
Status | Pending | ⇒ | Ready to Commit |
RTC
Not sure if this is the way forward, when we want to have a color switch soon based on a data attribute with a different name? (Although the overall function looks good)
It will be an adddittional atribute with the active color scheme name.
We just will be need to update this code to account it.
And data-color-scheme-os
will stay, to indicate that the template will do switch automatically based on OS state.
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2023-11-18 02:57:32 |
Closed_By | ⇒ | bembelimen | |
Labels |
Added:
Feature
?
|
Thx
I have tested this item ✅ successfully on 0069901
awesome!!!
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42322.