Skip to content

Commit 37c0f01

Browse files
chore(search,textfield): displayLabel arg is undefined (#3660)
* chore: update textfield template arg - sets displayLabel as undefined in textfield default args. Before, with displayLabel set to true by default, components such as combobox, search, stepper, had duplicate field label components and offset a bunch of the icons & buttons within those components. With the displayLabel undefined in the default args, any nested textfields in other components will not render the field label that is embedded within the textfield. * chore(search): removes displayLabel arg from nested textfield
1 parent 646763a commit 37c0f01

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

components/search/stories/template.js

-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ export const Template = ({
4545
setName: "workflow",
4646
type: "search",
4747
placeholder: "Search",
48-
displayLabel: false,
4948
name: "search",
5049
customInputClasses: [`${rootClass}-input`],
5150
customIconClasses: [`${rootClass}-icon`],

components/textfield/stories/template.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export const Template = ({
7070
isReadOnly = false,
7171
isKeyboardFocused = false,
7272
isLoading = false,
73-
displayLabel = true,
73+
displayLabel,
7474
labelPosition = "top",
7575
labelText,
7676
characterCount,

0 commit comments

Comments
 (0)