react-pdf icon indicating copy to clipboard operation
react-pdf copied to clipboard

Nesting underline textDecoration removes underline

Open asiraky opened this issue 1 year ago • 0 comments

Describe the bug When you nest <Text> with textDecoration: 'underline' the nested <Text> loses the underline.

To Reproduce In the REPL just paste this in anywhere:

<Text style={{ textDecoration: 'underline' }}> H<Text style={{ textDecoration: 'underline' }}>ello</Text> </Text>

Interestingly if I set the child to 'none' the inherited underline reappears.

You can make use of react-pdf REPL to share the snippet

Expected behavior "ello" should be underlined as both it, and its parent are underlined. But instead the nesting seems to toggle off the underline.

Desktop (please complete the following information):

Any OS/version

asiraky avatar Aug 03 '24 01:08 asiraky