Skip to content

Commit a7290ee

Browse files
committed
focus for swatch
1 parent fa65695 commit a7290ee

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,10 @@ export class UUIColorSwatchElement extends LabelMixin(
110110
}
111111
}
112112

113+
focus(options?: FocusOptions | undefined): void {
114+
(this.selectableTarget as HTMLElement | undefined)?.focus(options);
115+
}
116+
113117
#selectButtonChanged(button?: Element | undefined) {
114118
this.selectableTarget = button || this;
115119
}

0 commit comments

Comments
 (0)