Skip to content

Commit 1963a98

Browse files
committed
uui-toggle: Change customElement to defineElement
1 parent ce3d48a commit 1963a98

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ import {
22
UUIHorizontalShakeAnimationValue,
33
UUIHorizontalShakeKeyframes,
44
} from '@umbraco-ui/uui-base/lib/animations';
5+
import { defineElement } from '@umbraco-ui/uui-base/lib/registration';
56
import { UUIBooleanInputElement } from '@umbraco-ui/uui-boolean-input/lib';
67
import {
78
iconCheck,
89
iconWrong,
910
} from '@umbraco-ui/uui-icon-registry-essential/lib/svgs';
1011
import { css, html } from 'lit';
11-
import { customElement } from 'lit/decorators.js';
1212

1313
/**
1414
* Umbraco Toggle-switch, toggles between off/on. Technically a checkbox.
@@ -25,7 +25,7 @@ import { customElement } from 'lit/decorators.js';
2525
* @cssprop --uui-toggle-background-color-focus - Set the toggle background color when focused
2626
* @extends UUIBooleanInputElement
2727
*/
28-
@customElement('uui-toggle')
28+
@defineElement('uui-toggle')
2929
export class UUIToggleElement extends UUIBooleanInputElement {
3030
/**
3131
* This is a static class field indicating that the element is can be used inside a native form and participate in its events. It may require a polyfill, check support here https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/attachInternals. Read more about form controls here https://web.dev/more-capable-form-controls/

0 commit comments

Comments
 (0)