Skip to content

Commit

Permalink
Feat - Native Select / Select - Supporting additional content (#1159)
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-cedrone-cengage authored and silvalaura committed Sep 18, 2024
1 parent 2085402 commit 9a5c4fd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .changeset/feat-selectChildren.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'react-magma-dom': minor
---

feat(Select/NativeSelect): New `additionalContent` prop to provide the ability to add extra content inline with the label similar to the Input component.
Original file line number Diff line number Diff line change
Expand Up @@ -179,16 +179,15 @@ export const NativeSelect = React.forwardRef<HTMLDivElement, NativeSelectProps>(
disabled={disabled}
hasError={!!errorMessage}
isInverse={isInverse}
theme={theme}
helperMessage={helperMessage}
messageStyle={messageStyle}
ref={ref}
>
<StyledNativeSelect
data-testid={testId}
hasError={!!errorMessage}
<StyledNativeSelectWrapper
disabled={disabled}
id={id}
hasError={!!errorMessage}
isInverse={isInverse}
theme={theme}
{...other}
>
{children}
</StyledNativeSelect>
Expand Down

0 comments on commit 9a5c4fd

Please sign in to comment.