Skip to content
Snippets Groups Projects
Unverified Commit c42562ef authored by Timo's avatar Timo Committed by GitHub
Browse files

Make EC widget theme reactive - Update widget url when the theme changes (#12295)


* update widget url when the theme changes

Signed-off-by: default avatarTimo K <toger5@hotmail.de>

* quick "make it EC specific" workaround proposal.

Signed-off-by: default avatarTimo K <toger5@hotmail.de>

* use `matches`

Signed-off-by: default avatarTimo K <toger5@hotmail.de>

* test coverage

Signed-off-by: default avatarTimo K <toger5@hotmail.de>

* more test coverage

Signed-off-by: default avatarTimo K <toger5@hotmail.de>

* fix jest

Signed-off-by: default avatarTimo K <toger5@hotmail.de>

* add tests for theme changes

Signed-off-by: default avatarTimo K <toger5@hotmail.de>

* update snapshots

Signed-off-by: default avatarTimo K <toger5@hotmail.de>

* test for theme update with non ec widget

Signed-off-by: default avatarTimo K <toger5@hotmail.de>

* add dark custom theme widget url

Signed-off-by: default avatarTimo K <toger5@hotmail.de>

* trigger conditions for theme cleanup

Signed-off-by: default avatarTimo K <toger5@hotmail.de>

* update tests using testId

Signed-off-by: default avatarTimo K <toger5@hotmail.de>

* use typed event emitter for theme watcher

Signed-off-by: default avatarTimo K <toger5@hotmail.de>

* simplify condition

Signed-off-by: default avatarTimo K <toger5@hotmail.de>

---------

Signed-off-by: default avatarTimo K <toger5@hotmail.de>
parent 80c4c3c2
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment