Skip to content
This repository has been archived by the owner on Oct 19, 2021. It is now read-only.

fix(Icon): removes description default value #2235

Merged
merged 3 commits into from
Apr 18, 2019

Conversation

paschalidi
Copy link
Contributor

@paschalidi paschalidi commented Apr 18, 2019

✨ Hey you all ✨Hope you are doing all fine and coding happily!

Closes https://github.com/IBM/carbon-components-react/issues/2230

When the Icon component is being used without the description property the default is being assigned to description. The default value at the moment is Provide a description that will be used as the title. This default description generates an invalid (from an a11y perspective) aria-label attribute value in the HTML, which can cause confusion to the end user. This leads to a false negative in DAP (no reported violation).

Changelog

Removed
Removed the following property from the Icon component.
descripton: Provide a description that will be used as the title

Please dont hesitate to raise questions! Peace out!

@netlify
Copy link

netlify bot commented Apr 18, 2019

Deploy preview for carbon-components-react ready!

Built with commit a23a3b9

https://deploy-preview-2235--carbon-components-react.netlify.com

@netlify
Copy link

netlify bot commented Apr 18, 2019

Deploy preview for carbon-components-react ready!

Built with commit 2f2325e

https://deploy-preview-2235--carbon-components-react.netlify.com

Copy link
Member

@emyarod emyarod 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 to me! on a side note I think we will be deprecating this component soon in favor of carbon-elements

Copy link
Contributor

@asudoh asudoh left a comment

Choose a reason for hiding this comment

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

LGTM 👍 - Thanks @paschalidi!

@asudoh asudoh merged commit 89582e3 into carbon-design-system:master Apr 18, 2019
@paschalidi
Copy link
Contributor Author

@asudoh @emyarod thanks for merging this and taking the time to review it!

@vpicone vpicone mentioned this pull request Apr 30, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
3 participants