Skip to content

Commit 47f3a00

Browse files
committed
refactor(datepicker): storybook improvements
1 parent 73c043f commit 47f3a00

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

components/datepicker/stories/datepicker.stories.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export default {
3434
control: "boolean",
3535
},
3636
isDateTimeRange: {
37-
name: "Date Time Range styling",
37+
name: "Date and Time styling",
3838
type: { name: "boolean" },
3939
table: {
4040
type: { summary: "boolean" },

components/datepicker/stories/template.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export const Template = ({
6767
isQuiet,
6868
isDisabled,
6969
isReadOnly: readOnly,
70-
isInvalid: isRange ? "" : isInvalid,
70+
isInvalid: !isRange ? isInvalid : undefined,
7171
customClasses: [`${rootClass}-textfield`],
7272
customInputClasses: isRange ? [`${rootClass}-input`, `${rootClass}-startField`] : [`${rootClass}-input`],
7373
placeholder: "Choose a date",

0 commit comments

Comments
 (0)