Skip to content
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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

pavelklibani
Copy link
Contributor

  • element tag was forwarded to dom element

Description

Additional context

Issue reference

@pavelklibani pavelklibani self-assigned this Mar 3, 2025
@github-actions github-actions bot added the bug Something isn't working label Mar 3, 2025
@pavelklibani pavelklibani requested a review from dlouhak March 3, 2025 16:57
Copy link

netlify bot commented Mar 3, 2025

Deploy Preview for spirit-design-system-storybook ready!

Name Link
🔨 Latest commit 0dfef7e
🔍 Latest deploy log https://app.netlify.com/sites/spirit-design-system-storybook/deploys/67c81f09c412060008141cbe
😎 Deploy Preview https://deploy-preview-1970--spirit-design-system-storybook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Mar 3, 2025

Deploy Preview for spirit-design-system ready!

Name Link
🔨 Latest commit 0dfef7e
🔍 Latest deploy log https://app.netlify.com/sites/spirit-design-system/deploys/67c81f0971a8bb00085366ad
😎 Deploy Preview https://deploy-preview-1970--spirit-design-system.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 96 (🟢 up 5 from production)
Accessibility: 100 (no change from production)
Best Practices: 100 (no change from production)
SEO: 91 (no change from production)
PWA: -
View the detailed breakdown and full score reports

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);
Copy link
Contributor

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?

Copy link
Contributor

@katerinarehorkova katerinarehorkova left a 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,.....

@pavelklibani pavelklibani force-pushed the fix/element-type-in-style-props branch from 40ce5d9 to e972e15 Compare March 4, 2025 13:26
@pavelklibani
Copy link
Contributor Author

I see the same issue in more components? Accordion, Card, Drawer,.....

cannot reproduce

@coveralls
Copy link

Coverage Status

coverage: 96.838%. remained the same
when pulling e972e15 on fix/element-type-in-style-props
into 0708a6d on main.

@pavelklibani pavelklibani force-pushed the fix/element-type-in-style-props branch from e972e15 to 1fa086d Compare March 4, 2025 15:13
@pavelklibani pavelklibani force-pushed the fix/element-type-in-style-props branch from 1fa086d to 0dfef7e Compare March 5, 2025 09:53
@pavelklibani
Copy link
Contributor Author

rebased with main

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants