Skip to content

Commit

Permalink
Merge pull request #2102 from dxc-technology/jialecl-dateInputSmall
Browse files Browse the repository at this point in the history
Added new valid size to the dateinput
  • Loading branch information
GomezIvann authored Oct 17, 2024
2 parents a749132 + ed971c5 commit 4e2c35b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ const sections = [
<tr>
<td>size</td>
<td>
<TableCode>'medium' | 'large' | 'fillParent'</TableCode>
<TableCode>'small' | 'medium' | 'large' | 'fillParent'</TableCode>
</td>
<td>Size of the component.</td>
<td>
Expand Down
4 changes: 4 additions & 0 deletions packages/lib/src/date-input/DateInput.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ const DateInputChromatic = () => (
<DxcDateInput label="Xxlarge" margin="xxlarge" />
</ExampleContainer>
<Title title="Sizes" theme="light" level={2} />
<ExampleContainer>
<Title title="Small size" theme="light" level={4} />
<DxcDateInput label="Small" size="small" />
</ExampleContainer>
<ExampleContainer>
<Title title="Medium size" theme="light" level={4} />
<DxcDateInput label="Medium" size="medium" />
Expand Down
2 changes: 1 addition & 1 deletion packages/lib/src/date-input/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ type Props = {
/**
* Size of the component.
*/
size?: "medium" | "large" | "fillParent";
size?: "small" | "medium" | "large" | "fillParent";
/**
* Value of the tabindex attribute.
*/
Expand Down

0 comments on commit 4e2c35b

Please sign in to comment.