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: change label HTML tag in cv-file-uploader component #1145

Merged
merged 2 commits into from
Apr 5, 2021
Merged

fix: change label HTML tag in cv-file-uploader component #1145

merged 2 commits into from
Apr 5, 2021

Conversation

caioafc
Copy link
Contributor

@caioafc caioafc commented Mar 18, 2021

Closes #

Hello guys,
We have an accessbility issue in cv-file-uploader component label, <strong/> tag is not the best option for heading contents. To fix this issue I tried to change to <p/> tag, so the Accessbility Checker stoped warning about this problem. Can you check if the alteration is possible?

Before:

image

After:

image

Changelog

M packages/core/src/components/cv-file-uploader/cv-file-uploader.vue

change label tag from strong to p for semantic reasons
@netlify
Copy link

netlify bot commented Mar 18, 2021

Deploy preview for carbon-components-vue ready!

Built with commit 0802f8b

https://deploy-preview-1145--carbon-components-vue.netlify.app

Copy link
Contributor

@jungleBadger jungleBadger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It does look good to me. @lee-chase, was there a specific reason to use the strong tag?

@lee-chase
Copy link
Member

This change would need to go through core carbon as our HTML mirrors that.

Raised an issue with core Carbon.

Copy link
Member

@lee-chase lee-chase left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Carbon have gone with this solution.

@kodiakhq kodiakhq bot merged commit 5c8da0a into carbon-design-system:master Apr 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants