-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Fix(web-react): Forgotten elementType in useStyleProps hook #1970
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for spirit-design-system-storybook ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for spirit-design-system ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
@@ -40,7 +40,7 @@ const Collapse = (props: SpiritCollapseProps) => { | |||
|
|||
const { classProps } = useCollapseStyleProps(restProps.isOpen); | |||
const { ariaProps, props: otherProps } = useCollapseAriaProps(restProps); | |||
const { styleProps, props: transferProps } = useStyleProps({ ElementTag, ...otherProps }); | |||
const { styleProps, props: transferProps } = useStyleProps(otherProps); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't be bulletproof to edit restPropsTest.tsx
, so it will be caught earlier?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see the same issue in more components? Accordion, Card, Drawer,.....
40ce5d9
to
e972e15
Compare
cannot reproduce |
e972e15
to
1fa086d
Compare
- element tag was forwarded to dom element
1fa086d
to
0dfef7e
Compare
rebased with main |
Description
Additional context
Issue reference