cds-snc / platform-forms-client

NextJS application that serves the public-facing website for Forms
https://forms-staging.cdssandbox.xyz/
MIT License
32 stars 13 forks source link

Second order nested bullets show in a different font #3967

Open srtalbot opened 2 months ago

srtalbot commented 2 months ago
image.png

Lexical issue: https://github.com/facebook/lexical/issues/2208

Expected behavior:

ShadeWyrm commented 2 months ago

Testing with Lexical and Word shows that this seems to be an issue with the way Word applies Bullets.

Creating a nested list within Lexical works, then pasting into Word applies correctly. Creating a nested list within Word works, then pasting it into Lexical OR our implementation of Lexical makes the weird font. Creating a nested list within notepad works, then pasting into Lexical works. Pasting from Lexical or Notepad into word works. Creating a nested list within StackEdit, then pasting into Lexical works.

All this to say it seems to be a unique formatting issue to how Word handles nested lists. Pasting into any other medium first would fix the issue for the client it looks.

@srtalbot how much effort do we want to expend on this knowing that pasting any content from: https://playground.lexical.dev works, and it's just an issue with Word. I'm working under the assumption 90% of our userbase will be using word, so probably higher than normally would be the case with a bug that has a work around. :)

ShadeWyrm commented 2 months ago

This seems to be a more relevant Lexcial Issue : https://github.com/facebook/lexical/issues/4761