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: LinkButton to use inline TextBody #627

Merged
merged 3 commits into from
Apr 3, 2019
Merged

Conversation

jonnybel
Copy link
Contributor

@jonnybel jonnybel commented Apr 2, 2019

Summary

This PR:

Description

There is still a problem with the LinkButton rendering a div (from the Spacings.Inline wrapper), which inside a p is also an invalid DOM nesting. I shall address this in a follow-up PR.

@@ -94,6 +94,7 @@ Wraps the given text in a `<p>` element, for normal content.
| `children` | `PropTypes.node` || - | - |
| `title` | `String` | - | - | - |
| `truncate` | `Bool` | - | - | `false` |
| `isInline` | `Bool` | - | - | `false` |
Copy link
Contributor

Choose a reason for hiding this comment

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

is this used anywhere?

Copy link
Member

Choose a reason for hiding this comment

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

This is the README of the Text component, I think the props was missing from the documentation...right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, it was already being used, just not documented.

Copy link
Contributor

Choose a reason for hiding this comment

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

oooh 🤦‍♂️

Copy link
Contributor

@montezume montezume left a comment

Choose a reason for hiding this comment

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

👍

@montezume montezume added the 🐛 Type: Bug Something isn't working label Apr 2, 2019
@tdeekens tdeekens added Semver: FIX and removed 🐛 Type: Bug Something isn't working labels Apr 2, 2019
@montezume montezume merged commit 815333e into master Apr 3, 2019
@montezume montezume deleted the ja-fix-linkbutton-tag branch April 3, 2019 07:42
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.

4 participants