Skip to content

Commit b18c1cf

Browse files
committed
fix broken dropdown stories because the old code got deleted
1 parent 0c878fa commit b18c1cf

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

src/components/uui-custom-select/uui-custom-select.element.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { html, css, LitElement } from 'lit';
22
import { query, property, state } from 'lit/decorators.js';
33
import { UUIDropdownElement } from '../uui-dropdown/uui-dropdown.element';
4-
import { UUIOverflowContainer } from '../uui-overflow-container/uui-overflow-container.element';
4+
import { UUIScrollContainerElement } from '@umbraco-ui/uui-scroll-container/lib/uui-scroll-container.element';
55
import { UUISelectOptionElement } from '../uui-select-option/uui-select-option.element';
66
import { UUICustomSelectEvent } from './UUICustomSelectEvent';
77
import { UUISelectOptionEvent } from '../uui-select-option/UUISelectOptionEvent';
@@ -37,7 +37,7 @@ export class UUICustomSelectElement extends LitElement {
3737
outline: none;
3838
}
3939
40-
uui-overflow-container {
40+
uui-scroll-container {
4141
min-width: var(--uui-select-width);
4242
outline: none;
4343
}
@@ -136,8 +136,8 @@ export class UUICustomSelectElement extends LitElement {
136136
@property()
137137
placeholder = '';
138138

139-
@query('uui-overflow-container')
140-
overflow!: UUIOverflowContainer;
139+
@query('uui-scroll-container')
140+
overflow!: UUIScrollContainerElement;
141141

142142
@query('slot') protected slotElement!: HTMLSlotElement;
143143
protected listElements!: UUISelectOptionElement[];
@@ -364,14 +364,14 @@ export class UUICustomSelectElement extends LitElement {
364364
</button>
365365
`}
366366
367-
<uui-overflow-container
367+
<uui-scroll-container
368368
slot="dropdown"
369369
role="listbox"
370370
tabindex="${this.open ? '0' : '-1'}"
371371
aria-activedescendant="TODO"
372372
@change=${this.onListElementChange}>
373373
<slot @slotchange=${this.onSlotChange}></slot>
374-
</uui-overflow-container>
374+
</uui-scroll-container>
375375
</uui-dropdown>
376376
`;
377377
}

src/components/uui-dropdown/uui-dropdown.story.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export const Overview = () => html`
5151
}}
5252
>Click</uui-button
5353
>
54-
<uui-overflow-container slot="dropdown" style="min-width: 400px">
54+
<uui-scroll-container slot="dropdown" style="min-width: 400px">
5555
<uui-select-list>
5656
${options.map(
5757
option =>
@@ -67,7 +67,7 @@ export const Overview = () => html`
6767
></uui-select-option>`
6868
)}
6969
</uui-select-list>
70-
</uui-overflow-container>
70+
</uui-scroll-container>
7171
</uui-dropdown>
7272
`;
7373

@@ -82,7 +82,7 @@ export const withInput = () => html`
8282
}}
8383
>Click</uui-button
8484
>
85-
<uui-overflow-container slot="dropdown" style="min-width: 400px">
85+
<uui-scroll-container slot="dropdown" style="min-width: 400px">
8686
<uui-select-list>
8787
${options.map(
8888
option =>
@@ -98,7 +98,7 @@ export const withInput = () => html`
9898
></uui-select-option>`
9999
)}
100100
</uui-select-list>
101-
</uui-overflow-container>
101+
</uui-scroll-container>
102102
</uui-dropdown>
103103
`;
104104

@@ -112,7 +112,7 @@ export const top = () => html`
112112
}}
113113
>Click</uui-button
114114
>
115-
<uui-overflow-container slot="dropdown" style="min-width: 200px">
115+
<uui-scroll-container slot="dropdown" style="min-width: 200px">
116116
<uui-select-list>
117117
${options.map(
118118
option =>
@@ -128,7 +128,7 @@ export const top = () => html`
128128
></uui-select-option>`
129129
)}
130130
</uui-select-list>
131-
</uui-overflow-container>
131+
</uui-scroll-container>
132132
</uui-dropdown>
133133
`;
134134

@@ -144,7 +144,7 @@ export const auto = () => html`
144144
}}
145145
>Click</uui-button
146146
>
147-
<uui-overflow-container slot="dropdown" style="min-width: 400px">
147+
<uui-scroll-container slot="dropdown" style="min-width: 400px">
148148
<uui-select-list>
149149
${options.map(
150150
option =>
@@ -160,7 +160,7 @@ export const auto = () => html`
160160
></uui-select-option>`
161161
)}
162162
</uui-select-list>
163-
</uui-overflow-container>
163+
</uui-scroll-container>
164164
</uui-dropdown>
165165
<div style="height: 150vh;"></div>
166166
`;

0 commit comments

Comments
 (0)