Skip to content

Commit fd7e4be

Browse files
committed
Add more style options to the story
1 parent 5237fd3 commit fd7e4be

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

src/labs/ia-combo-box/ia-combo-box-story.ts

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,18 @@ const styleInputSettings: StyleInputSettings[] = [
2828
defaultValue: '5px',
2929
inputType: 'text',
3030
},
31+
{
32+
label: 'Dropdown width',
33+
cssVariable: '--combo-box-list-width',
34+
defaultValue: '',
35+
inputType: 'text',
36+
},
37+
{
38+
label: 'Dropdown max height',
39+
cssVariable: '--combo-box-list-max-height',
40+
defaultValue: '250px',
41+
inputType: 'text',
42+
},
3143
];
3244

3345
// Option sets
@@ -174,7 +186,7 @@ export class IAComboBoxStory extends LitElement {
174186
>
175187
<span slot="label">${this.label}</span>
176188
</ia-combo-box>
177-
<div id="announcer">${this.announcerText}</div>
189+
<span id="announcer">${this.announcerText}</span>
178190
</div>
179191
180192
<form slot="settings">
@@ -378,7 +390,7 @@ export class IAComboBoxStory extends LitElement {
378390
static get styles(): CSSResultGroup {
379391
return css`
380392
#announcer {
381-
margin-top: 10px;
393+
margin-left: 20px;
382394
}
383395
`;
384396
}

0 commit comments

Comments
 (0)