Skip to content

Commit

Permalink
fix: fix required for select input (#960)
Browse files Browse the repository at this point in the history
This also fixes a required prop in SmallText, which causes type problems in kommander ui.
  • Loading branch information
clintonmedbery authored Apr 4, 2023
1 parent 1b956d4 commit 5c941ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/selectInput/components/SelectInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ const SelectInput = ({
onBlur={handleBlur}
data-cy={selectDataCy}
disabled={disabled}
required={required}
{...other}
>
{options.map((option, key) => (
Expand Down
2 changes: 1 addition & 1 deletion packages/styleUtils/typography/components/SmallText.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export interface SmallTextProps extends SharedTextProps {
/**
* The color of the text
*/
color: React.CSSProperties["color"];
color?: React.CSSProperties["color"];
/**
* Which HTML tag to render the text in
*/
Expand Down

0 comments on commit 5c941ef

Please sign in to comment.