diff --git a/apps/client/src/widgets/ribbon_widgets/promoted_attributes.ts b/apps/client/src/widgets/ribbon_widgets/promoted_attributes.ts index 5cb85b79d..f661356ed 100644 --- a/apps/client/src/widgets/ribbon_widgets/promoted_attributes.ts +++ b/apps/client/src/widgets/ribbon_widgets/promoted_attributes.ts @@ -80,11 +80,29 @@ const TPL = /*html*/` .promoted-attribute-cell input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; } + .promoted-attribute-cell input[type="color"]::-webkit-color-swatch { border: none; border-radius: 25%; } + .promoted-attribute-label-color input[type="hidden"][value=""] + input[type="color"] { + position: relative; + opacity: 0.5; + } + + .promoted-attribute-label-color input[type="hidden"][value=""] + input[type="color"]:after { + content: ""; + position: absolute; + top: 10px; + left: 0px; + right: 0; + height: 2px; + background: rgba(0, 0, 0, 0.5); + transform: rotate(45deg); + pointer-events: none; + } +
@@ -285,19 +303,15 @@ export default class PromotedAttributesWidget extends NoteContextAwareWidget { $input.after($openButton); } else if (definition.labelType === "color") { + const defaultColor = "#ffffff"; $input.prop("type", "hidden"); - const setValue = (color: string, event: JQuery.TriggeredEvent