Open JoeHart opened 2 weeks ago
This is basically a CSS issue, TabNode creates a span with only whitespace as content, and CSS won't do a strikethrough in that case since there isn't any "text".
Just as @etrepum said, it is a CSS issue. The strikethrough can be seen when the text is selected as shown in this image.
Thanks for suggesting where the issue is arising, its caused by CSS yes but I think its still a bug. Lexical is essentially "pretending" to be a text editor. If you are in a normal text editor, for example this one you would expect strikethrough to display on whitespaces like tabs. Foo Bar (Though interestingly github shrinks white space 😅 )
The context I'm providing is guidance for whomever wanted to work on it. We currently have a number of new contributors looking for issues to help with and this is a fairly straightforward one.
👋 Howdy maintainers, first of all big fan of the library! Thanks for all the hard work you put into this great software.
Lexical version: 0.19.0
Steps To Reproduce
Hello foo
which is hello press the Tab key then foo.Link to code example: https://playground.lexical.dev/
The current behavior
Tabs do not have a strikethrough.
The expected behavior
Tabs should have strike through.
Impact of fix
Would keep formatting consistent between lexical and other text editors.