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

fix(Loading): use description prop as SVG title #2421

Merged

Conversation

emyarod
Copy link
Member

@emyarod emyarod commented Oct 8, 2019

Closes carbon-design-system/carbon#4194 (backport of carbon-design-system/carbon#2955)

This PR passes the description prop to the <Loading> component SVG title

Testing / Reviewing

Ensure the SVG title reflects the iconDescription prop in <InlineLoading> and the description prop in <Loading>

@emyarod emyarod requested a review from a team October 17, 2019 13:39
src/components/Loading/Loading.js Show resolved Hide resolved
src/components/Loading/Loading-story.js Outdated Show resolved Hide resolved
/**
* Specify the description for the inline loading text
*/
iconDescription: PropTypes.string,
Copy link
Contributor

Choose a reason for hiding this comment

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

What's the difference between this and description? Can we just use description instead of adding a new prop? Looks like you might have accidentally not updated the comment block

Copy link
Member Author

Choose a reason for hiding this comment

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

description is meant to be a node instead of a string, and iconDescription is for the SVG title in <Loading />

src/components/InlineLoading/InlineLoading-story.js Outdated Show resolved Hide resolved
@emyarod emyarod force-pushed the 4194-support-custom-loading-svg-titles branch 2 times, most recently from b93281f to 869cf45 Compare October 17, 2019 14:50
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 @emyarod!

@asudoh
Copy link
Contributor

asudoh commented Oct 25, 2019

@vpicone Would you be able to re-review? Thanks!

Copy link
Contributor

@vpicone vpicone left a comment

Choose a reason for hiding this comment

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

How long are we going to be backporting to v6?

@emyarod
Copy link
Member Author

emyarod commented Oct 28, 2019

until v8 is released I imagine

@emyarod emyarod merged commit f550f83 into carbon-design-system:v6 Oct 28, 2019
@emyarod emyarod deleted the 4194-support-custom-loading-svg-titles branch October 28, 2019 13:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
3 participants