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

[core] feat(Text): allow passing HTML props #4798

Merged
merged 2 commits into from Jul 7, 2021
Merged

Conversation

invliD
Copy link
Member

@invliD invliD commented Jul 5, 2021

Fixes #4682

The main use case I have is to pass down accessibility arguments (e.g. role) to the underlying element. cc @styu

Changes proposed in this pull request:

Forward all non-BP props to the created element

Reviewers should focus on:

Typings. I'm allowing all HTML props, even though technically you could create a Text component with a tagName that isn't HTML.

@invliD invliD requested a review from adidahiya July 5, 2021 09:51
@blueprint-bot
Copy link

Prettify

Previews: documentation | landing | table

@adidahiya adidahiya changed the title Allow passing HTML props to Text component [core] feat(Text): allow passing HTML props Jul 7, 2021
@adidahiya adidahiya merged commit 9be03db into develop Jul 7, 2021
@adidahiya adidahiya deleted the sb/text-props branch July 7, 2021 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Perhaps extra props should be forwarded into the rendered element of Text?
3 participants