Skip to content

Add ability to pass custom isTextOnly function#12

Open
ggustilo wants to merge 1 commit intoTitanInvest:masterfrom
ggustilo:ggustilo/provideCustomUtil
Open

Add ability to pass custom isTextOnly function#12
ggustilo wants to merge 1 commit intoTitanInvest:masterfrom
ggustilo:ggustilo/provideCustomUtil

Conversation

@ggustilo
Copy link
Copy Markdown

@ggustilo ggustilo commented Jan 8, 2021

We are using styled components, and they were failing line 15 of Utils.isTextOnly, because the displayName is some permutation of 'Styled(Text).' Thus bold and italics were failing to render inline.

This method seemed like the most backwards compatible way to fix, in line with your existing methodology.

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.

1 participant