Skip to content

Commit 77bbc30

Browse files
committed
revert uui-select change
1 parent d3d1a92 commit 77bbc30

File tree

1 file changed

+3
-16
lines changed

1 file changed

+3
-16
lines changed

src/packages/user/current-user/theme/current-user-theme-user-profile-app.element.ts

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { css, html, customElement, state, nothing, repeat } from '@umbraco-cms/backoffice/external/lit';
1+
import { css, html, customElement, state, nothing } from '@umbraco-cms/backoffice/external/lit';
22
import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
33
import { umbExtensionsRegistry } from '@umbraco-cms/backoffice/extension-registry';
44
import { UMB_THEME_CONTEXT } from '@umbraco-cms/backoffice/themes';
@@ -50,28 +50,15 @@ export class UmbCurrentUserThemeUserProfileAppElement extends UmbLitElement {
5050
return html`
5151
<uui-box headline="Theme">
5252
<uui-tag slot="headline" look="placeholder">Experimental</uui-tag>
53-
<select label="Select theme" @change=${this.#onThemeChange}>
54-
${repeat(
55-
this._themes,
56-
(theme) => theme.value,
57-
(theme) => html`<option value=${theme.value} ?selected=${theme.selected}>${theme.name}</option>`,
58-
)}
59-
</select>
53+
<uui-select label="Select theme" .options=${this._themes} @change=${this.#onThemeChange}></uui-select>
6054
</uui-box>
6155
`;
6256
}
6357

6458
static override styles = [
6559
css`
66-
select {
60+
uui-select {
6761
width: 100%;
68-
font: inherit;
69-
color: var(--uui-color-text);
70-
background-color: var(--uui-color-surface);
71-
padding: var(--uui-size-1) var(--uui-size-space-3);
72-
border: 1px solid var(--uui-color-border);
73-
height: var(--uui-size-11);
74-
box-sizing: border-box;
7562
}
7663
`,
7764
];

0 commit comments

Comments
 (0)