Support color-scheme globally #39394
Unanswered
dgrammatiko
asked this question in
General
Replies: 1 comment 4 replies
-
I am strongly against this. We really need to be reducing, not adding, the number of web components used in Joomla. Very few contributors are comfortable working with or maintaining them and it does not make sense to use Javascript rendering in a PHP-based CMS. It may be reducing the work you have to do now, but it drastically increases the work others will have to do in the future, and I do not believe it is really for any benefit beyond the immediate. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So I'm doing some work on laying the foundations for globally supporting color-schemes (ie, dark/light mode).
Prerequisites:
data-theme
with 2 possible valueslight
ordark
. This would be the convention for many apps that would need to render client side (tinyMCE, MediaManager, etc) so they all work in harmony. This should be part of the API going forward, so pick wisely!To minimise the work needed I propose to change the way MediaManager is rendered, so from light DOM to render it in a WebComponent taking advantage of the Shadow DOM. This has the benefit that media manager would be decoupled from ANY template as it will have all the ingredients needed encapsulated. If this get's an approval work should be done with the assumption that BS5.3 will have accepted twbs/bootstrap#37162 (they seem to support it)I will update this with preliminary work so people could provide feedback and have some checks and balances that we're doing things correctly.
There's an early preview: #39400
Beta Was this translation helpful? Give feedback.
All reactions