Skip to content

Commit 6896328

Browse files
committed
ability to overwrite the required asterisk color
1 parent 9ef7f28 commit 6896328

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/uui-label/lib/uui-label.element.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { property } from 'lit/decorators.js';
66
* Label element for Custom Element
77
* @element uui-label
88
* @slot - for the label text.
9+
* @cssprop --uui-label-required-color - Color property for the required asterisk.
910
*/
1011
@defineElement('uui-label')
1112
export class UUILabelElement extends LitElement {
@@ -79,7 +80,7 @@ export class UUILabelElement extends LitElement {
7980
}
8081
#required {
8182
display: inline;
82-
color: var(--uui-color-danger);
83+
color: var(--uui-label-required-color, var(--uui-color-danger));
8384
font-weight: 900;
8485
}
8586
`,

0 commit comments

Comments
 (0)