diff --git a/arches/app/media/js/viewmodels/widget.js b/arches/app/media/js/viewmodels/widget.js index a85b27bd78d..da84027fc79 100644 --- a/arches/app/media/js/viewmodels/widget.js +++ b/arches/app/media/js/viewmodels/widget.js @@ -62,6 +62,12 @@ define([ this.config = ko.observable(this.config); } + this.nodeCssClasses = ko.pureComputed(function() { + return [ko.unwrap(self.node?.alias), + self.widget?.widgetLookup[ko.unwrap(self.widget?.widget_id)].name + ].join(" ").trim(); + }); + this.disposables = []; var subscribeConfigObservable = function(obs, key) { diff --git a/arches/app/templates/views/components/widgets/base.htm b/arches/app/templates/views/components/widgets/base.htm index 9ca49f2a2ae..b781d761238 100644 --- a/arches/app/templates/views/components/widgets/base.htm +++ b/arches/app/templates/views/components/widgets/base.htm @@ -9,15 +9,16 @@ {% block report %} -
- + + {% endblock report %} {% block display_value %} - + {% endblock display_value %} diff --git a/arches/app/templates/views/components/widgets/checkbox.htm b/arches/app/templates/views/components/widgets/checkbox.htm index db44ee8e4ac..a4dab691810 100644 --- a/arches/app/templates/views/components/widgets/checkbox.htm +++ b/arches/app/templates/views/components/widgets/checkbox.htm @@ -2,7 +2,7 @@ {% load i18n %} {% block form %} -