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

Loading <Button> does not hide text set using React children #572

Closed
greglo opened this issue Jan 30, 2017 · 0 comments
Closed

Loading <Button> does not hide text set using React children #572

greglo opened this issue Jan 30, 2017 · 0 comments

Comments

@greglo
Copy link
Contributor

greglo commented Jan 30, 2017

The following code snippet renders the button shown.

<Button isLoading={true}>Create collection</Button>

image

Expected:
It hides the text, as if the text was set using the text prop. (Or update the docs to mention that the only supported way is using the prop, not children)

@llorca llorca added this to the 1.8.0 milestone Jan 30, 2017
@giladgray giladgray self-assigned this Jan 30, 2017
giladgray added a commit that referenced this issue Jan 31, 2017
* add docs for Button type prop (fixes #571)

* wrap string children in span so loading can hide them (fixes #572)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants