Theme system refactor (#31)

This commit is contained in:
Gregory Schier authored and GitHub committed 2024-05-21 17:56:06 -07:00
1 parent 8606940dee
commit 83aaeb94f6
82 files changed
+909 -739

No files matched your search

@@ -11,8 +11,10 @@ class PlaceholderWidget extends WidgetType {
}
toDOM() {
const elt = document.createElement('span');
elt.className = `placeholder-widget ${
!this.isExistingVariable ? 'placeholder-widget-error' : ''
elt.className = `x-theme-placeholder-widget placeholder-widget ${
this.isExistingVariable
? 'x-theme-placeholder-widget--primary'
: 'x-theme-placeholder-widget--danger'
}`;
elt.title = !this.isExistingVariable ? 'Variable not found in active environment' : '';
elt.textContent = this.name;