Skip to content
This repository was archived by the owner on Jul 30, 2018. It is now read-only.
This repository was archived by the owner on Jul 30, 2018. It is now read-only.

Better User Experience when Using Themes #584

@kitsonk

Description

@kitsonk

Enhancement

When creating a new theme, it can be rather rather confusing trying to figure out exactly why classes are not being swapped out for the themed classes. Currently if the themeable mixin can't resolve a class name when given a theme, it silently fails.

An enhancement would be to log a warn to the console when a themeable widget has a theme in the properties, but the mixin cannot resolve the them. Something like:

Cannot resolve themed class name.  Looking for 'root' in 'dojo-mywidget'.
Cannot resolve themed class name.  Missing key of 'mycssmodule'.

These would help the developer know where they may have omitted or misconfigured something.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions