Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix(web-react): Pass aria props rel and target based on element type to the dom element #1778

Merged
merged 2 commits into from
Nov 27, 2024

Conversation

literat
Copy link
Collaborator

@literat literat commented Nov 26, 2024

Description

The elementType prop was not passed to the useButtonLinkAriaProps hook and this attributes like rel and target were overridden by undefined value. So those could never reach the DOM element.

Additional context

Issue reference

@literat literat requested review from pavelklibani, curdaj and a team as code owners November 26, 2024 11:03
@github-actions github-actions bot added the bug Something isn't working label Nov 26, 2024
Copy link

netlify bot commented Nov 26, 2024

Deploy Preview for spirit-design-system ready!

Name Link
🔨 Latest commit 7f146e6
🔍 Latest deploy log https://app.netlify.com/sites/spirit-design-system/deploys/67470e05f6b4670008ca2fdd
😎 Deploy Preview https://deploy-preview-1778--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 (no change from production)
Accessibility: 91 (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.

Copy link

netlify bot commented Nov 26, 2024

Deploy Preview for spirit-design-system-storybook canceled.

Name Link
🔨 Latest commit 7f146e6
🔍 Latest deploy log https://app.netlify.com/sites/spirit-design-system-storybook/deploys/67470e054c7864000800a183

@literat literat force-pushed the fix/web-react-button-link-aria-props branch from 0aaa2f8 to a9e8472 Compare November 26, 2024 11:12
@literat literat added the backport The code will be backported label Nov 26, 2024
@literat literat changed the title Fix(web-react): Pass aria props rel and target based on elemen type to the dom element Fix(web-react): Pass aria props rel and target based on element type to the dom element Nov 26, 2024
@literat literat force-pushed the fix/web-react-button-link-aria-props branch from a9e8472 to bf0dcc7 Compare November 26, 2024 13:28
@literat literat force-pushed the fix/web-react-button-link-aria-props branch from bf0dcc7 to 022d0a3 Compare November 27, 2024 12:11
@literat literat force-pushed the fix/web-react-button-link-aria-props branch from 022d0a3 to 7f146e6 Compare November 27, 2024 12:18
@literat literat merged commit 0b690ae into main Nov 27, 2024
23 checks passed
@literat literat deleted the fix/web-react-button-link-aria-props branch November 27, 2024 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport The code will be backported bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants