Skip to content

Commit 04c96a3

Browse files
chore(combobox, datepicker,et all): add displayLabel arg
- without the displayLabel arg set to false in the following components, the textfield was still rendering a label, and offsetting a bunch of the icons & buttons within these components combobox, datepicker, form, pagination, search, stepper
1 parent 2dcdc6e commit 04c96a3

File tree

5 files changed

+7
-0
lines changed

5 files changed

+7
-0
lines changed

components/combobox/stories/template.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ const Combobox = ({
6767
name: "field",
6868
isReadOnly,
6969
value,
70+
displayLabel: false,
7071
onclick: function () {
7172
if (!isOpen) updateArgs({ isOpen: true });
7273
},

components/datepicker/stories/template.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ export const DatePicker = ({
6464
name: "field",
6565
id: triggerId,
6666
value: selectedDay ? new Date(selectedDay).toLocaleDateString(lang) : undefined,
67+
displayLabel: false,
6768
onclick: function () {
6869
if (!isOpen) updateArgs({ isOpen: true });
6970
},

components/form/stories/form.stories.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ export default {
5151
...passthroughs,
5252
multiline: true,
5353
name: "field",
54+
displayLabel: false,
5455
}, context),
5556
],
5657
}, {
@@ -61,6 +62,7 @@ export default {
6162
...passthroughs,
6263
type: "email",
6364
name: "email",
65+
displayLabel: false,
6466
}, context),
6567
],
6668
}, {
@@ -71,6 +73,7 @@ export default {
7173
...passthroughs,
7274
placeholder: "Select a country",
7375
name: "country",
76+
displayLabel: false,
7477
}, context),
7578
],
7679
}, {

components/pagination/stories/template.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ export const Template = ({
3333
size,
3434
value: "1",
3535
customClasses: [`${rootClass}-textfield`],
36+
displayLabel: false,
3637
}, context)}
3738
<span class="${rootClass}-counter">of 89 pages</span>
3839
${ActionButton({

components/stepper/stories/template.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ export const Template = ({
7070
id: id ? `${id}-input` : undefined,
7171
customClasses: [`${rootClass}-textfield`],
7272
customInputClasses: [`${rootClass}-input`],
73+
displayLabel: false,
7374
}, context)}
7475
${when(!hideStepper, () => html`
7576
<span class="${rootClass}-buttons">

0 commit comments

Comments
 (0)