Skip to content

Commit 6baf2ab

Browse files
committed
feat: 💡 add readonly property
1 parent bd19c13 commit 6baf2ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/uui-color-swatch/lib/uui-color-swatch.element.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
} from '@umbraco-ui/uui-base/lib/mixins';
1010

1111
/**
12-
* Color swatch, can have label and be selectable.
12+
* Color swatch, can have label and be selectable, disabled or readonly.
1313
*
1414
* @element uui-color-swatch
1515
* @cssprop --uui-swatch-size - The size of the swatch.
@@ -66,7 +66,7 @@ export class UUIColorSwatchElement extends LabelMixin(
6666
* @default false
6767
*/
6868
@property({ type: Boolean, reflect: true })
69-
readonly = false;
69+
readonly: boolean = false;
7070

7171
/**
7272
* When true shows element label below the color checkbox

0 commit comments

Comments
 (0)