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

Text styles cleared after applying and unapplied list formatting #4881

Open
SerhiiTymchenkoLusha opened this issue Feb 21, 2025 · 1 comment

Comments

@SerhiiTymchenkoLusha
Copy link

SerhiiTymchenkoLusha commented Feb 21, 2025

Expected behavior

  1. Input text
  2. Make text an unordered list
  3. Change the text color to red
  4. Remove unordered list formatting
  5. The text color is still red

Actual behavior

  1. Input text
  2. Make text an unordered list
  3. Change the text color to red
  4. Remove unordered list formatting
  5. The text color resets to default

Recording

Screen.Recording.2025-02-21.at.12.27.52.mov

Product version

Latest version

Affected browser(s)

Tested on Chrome and Firefox

Thoughts

The same problem occurs for other font styles. I see from the result HTML that when we apply font styles for the text in the list item it looks like this <li style="color: red;">Some text</li> when we remove list formatting we remove <li> element and styles for the text. To fix that we can wrap text when we apply styles with additional element where we will add styles. It will help us save styles applied to text in case list formatting is removed.

@KyrylStronkoRoofr
Copy link

KyrylStronkoRoofr commented Mar 20, 2025

Same issue in my project

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

No branches or pull requests

2 participants