[GH-ISSUE #2451] [Bug] Highlight default background #9464

Closed
opened 2026-03-24 21:13:25 +00:00 by mirror · 16 comments
Owner

Originally created by @annieappflowy on GitHub (May 3, 2023).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/2451

Originally assigned to: @LucasXu0, @vuzzer on GitHub.

Bug Description

If I highlight in purple, there is no way to go back plain

How to Reproduce

Highlight text in purple

Expected Behavior

There should be an option for me to undo highlight in any color

Operating System

MacOS

AppFlowy Version(s)

Main branch

Screenshots

No response

Additional Context

No response

Originally created by @annieappflowy on GitHub (May 3, 2023). Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/2451 Originally assigned to: @LucasXu0, @vuzzer on GitHub. ### Bug Description If I highlight in purple, there is no way to go back plain ### How to Reproduce Highlight text in purple ### Expected Behavior There should be an option for me to undo highlight in any color ### Operating System MacOS ### AppFlowy Version(s) Main branch ### Screenshots _No response_ ### Additional Context _No response_
mirror 2026-03-24 21:13:25 +00:00
  • closed this issue
  • added the
    bug
    editor
    labels
Author
Owner

@vuzzer commented on GitHub (May 3, 2023):

Hey @annieappflowy , could I have some screenshot.

<!-- gh-comment-id:1533628647 --> @vuzzer commented on GitHub (May 3, 2023): Hey @annieappflowy , could I have some screenshot.
Author
Owner

@annieappflowy commented on GitHub (May 4, 2023):

image

When choosing this default background option, the highlight color is changed to blue, although it should've undone any highlight color.

<!-- gh-comment-id:1534091295 --> @annieappflowy commented on GitHub (May 4, 2023): <img width="770" alt="image" src="https://user-images.githubusercontent.com/12026239/236114961-2ce2ddee-539f-44f3-a48f-ed475689f431.png"> When choosing this default background option, the highlight color is changed to blue, although it should've undone any highlight color.
Author
Owner

@vuzzer commented on GitHub (May 4, 2023):

Hey @annieappflowy, could you assign it to me.

<!-- gh-comment-id:1535377453 --> @vuzzer commented on GitHub (May 4, 2023): Hey @annieappflowy, could you assign it to me.
Author
Owner

@annieappflowy commented on GitHub (May 5, 2023):

Assigned! Thank you

<!-- gh-comment-id:1535610427 --> @annieappflowy commented on GitHub (May 5, 2023): Assigned! Thank you
Author
Owner

@vuzzer commented on GitHub (May 6, 2023):

Hey @annieappflowy, if default background option is to remove the background color, it would be better to rename this option to remove background. What do you think about it ?

<!-- gh-comment-id:1537186935 --> @vuzzer commented on GitHub (May 6, 2023): Hey @annieappflowy, if `default background` option is to remove the background color, it would be better to rename this option to `remove background`. What do you think about it ?
Author
Owner

@annieappflowy commented on GitHub (May 7, 2023):

@vuzzer , "clear background" or "none"?

<!-- gh-comment-id:1537283962 --> @annieappflowy commented on GitHub (May 7, 2023): @vuzzer , "clear background" or "none"?
Author
Owner

@annieappflowy commented on GitHub (May 8, 2023):

Hi @vuzzer , can this be done by Friday? Hope this bug can be fixed by Friday in the upcoming release (v0.1.5)

<!-- gh-comment-id:1537965363 --> @annieappflowy commented on GitHub (May 8, 2023): Hi @vuzzer , can this be done by Friday? Hope this bug can be fixed by Friday in the upcoming release (v0.1.5)
Author
Owner

@vuzzer commented on GitHub (May 8, 2023):

Hey @annieappflowy, of course, it will be done before Friday.

<!-- gh-comment-id:1538981753 --> @vuzzer commented on GitHub (May 8, 2023): Hey @annieappflowy, of course, it will be done before Friday.
Author
Owner

@richardshiue commented on GitHub (May 10, 2023):

My two cents:

  • I thought that the default background color depends on the theme, in this case it's blue.

  • The current way to de-highlight (if that's a word) text is to click on the button again. However, there is a bug where if a color other than the default were selected, it would first clear the custom color (and use the default), and then a subsequent selection and click will de-highlight the default highlight color.

    image

  • It definitely would be better if I can also deselect color by clicking on it (e.g. if it's highlighted purple, I can click on purple and it will be de-highlighted).

<!-- gh-comment-id:1541427899 --> @richardshiue commented on GitHub (May 10, 2023): My two cents: - I thought that the default background color depends on the theme, in this case it's blue. - The current way to de-highlight (if that's a word) text is to click on the button again. However, there is a bug where if a color other than the default were selected, it would first clear the custom color (and use the default), and then a subsequent selection and click will de-highlight the default highlight color. ![image](https://github.com/AppFlowy-IO/AppFlowy/assets/71320345/a9969b60-5c33-446a-ae12-bf409638d52e) - It definitely would be better if I can also deselect color by clicking on it (e.g. if it's highlighted purple, I can click on purple and it will be de-highlighted).
Author
Owner

@vuzzer commented on GitHub (May 10, 2023):

Hey @annieappflowy, of course, it will be done before Friday.

I have difficulties to detect in the code base the part dedicated to the menu that appears when you select a text. I don't think I can solve this Friday.However, I am actively working on this problem. Any help is welcome. @annieappflowy @richardshiue

<!-- gh-comment-id:1542799957 --> @vuzzer commented on GitHub (May 10, 2023): > Hey @annieappflowy, of course, it will be done before Friday. I have difficulties to detect in the code base the part dedicated to the menu that appears when you select a text. I don't think I can solve this Friday.However, I am actively working on this problem. Any help is welcome. @annieappflowy @richardshiue
Author
Owner

@vuzzer commented on GitHub (May 10, 2023):

My two cents:

  • I thought that the default background color depends on the theme, in this case it's blue.
  • The current way to de-highlight (if that's a word) text is to click on the button again. However, there is a bug where if a color other than the default were selected, it would first clear the custom color (and use the default), and then a subsequent selection and click will de-highlight the default highlight color.
    image
  • It definitely would be better if I can also deselect color by clicking on it (e.g. if it's highlighted purple, I can click on purple and it will be de-highlighted).

I have found this problem as well @richardshiue. I have difficulties to detect in the code base the part dedicated to the menu that appears when you select a text.

<!-- gh-comment-id:1542804293 --> @vuzzer commented on GitHub (May 10, 2023): > My two cents: > > * I thought that the default background color depends on the theme, in this case it's blue. > * The current way to de-highlight (if that's a word) text is to click on the button again. However, there is a bug where if a color other than the default were selected, it would first clear the custom color (and use the default), and then a subsequent selection and click will de-highlight the default highlight color. > ![image](https://user-images.githubusercontent.com/71320345/237297785-a9969b60-5c33-446a-ae12-bf409638d52e.png) > * It definitely would be better if I can also deselect color by clicking on it (e.g. if it's highlighted purple, I can click on purple and it will be de-highlighted). I have found this problem as well @richardshiue. I have difficulties to detect in the code base the part dedicated to the menu that appears when you select a text.
Author
Owner

@Xazin commented on GitHub (May 10, 2023):

This is an issue with the software design. Text background and highlight are two separate things, thus causing this weird behavior, whilst they should either be the same feature, or there should be noticeably different behavior.

<!-- gh-comment-id:1542818215 --> @Xazin commented on GitHub (May 10, 2023): This is an issue with the software design. Text background and highlight are two separate things, thus causing this weird behavior, whilst they should either be the same feature, or there should be noticeably different behavior.
Author
Owner

@vuzzer commented on GitHub (May 10, 2023):

of course, although I have activated Select widget mode, to determine the toolbar that appears when you underline the text, it detects every time this widget AppFlowyEditor.

<!-- gh-comment-id:1542862382 --> @vuzzer commented on GitHub (May 10, 2023): of course, although I have activated **Select widget mode**, to determine the toolbar that appears when you underline the text, it detects every time this widget `AppFlowyEditor`.
Author
Owner

@annieappflowy commented on GitHub (May 11, 2023):

Thanks @vuzzer for letting us know. I moved this issue to v0.2

<!-- gh-comment-id:1543541222 --> @annieappflowy commented on GitHub (May 11, 2023): Thanks @vuzzer for letting us know. I moved this issue to v0.2
Author
Owner

@LucasXu0 commented on GitHub (May 12, 2023):

Hey, @vuzzer. You can take a look in the appflowy_editor mobile branch. we have removed the highlight item and separated the text color and the background color into two items.

<!-- gh-comment-id:1545037066 --> @LucasXu0 commented on GitHub (May 12, 2023): Hey, @vuzzer. You can take a look in the appflowy_editor `mobile` branch. we have removed the highlight item and separated the text color and the background color into two items.
Author
Owner

@vuzzer commented on GitHub (May 12, 2023):

Hey, @vuzzer. You can take a look in the appflowy_editor mobile branch. we have removed the highlight item and separated the text color and the background color into two items.

Hey @LucasXu0, Thank you very much, I am looking into it.

<!-- gh-comment-id:1546438359 --> @vuzzer commented on GitHub (May 12, 2023): > Hey, @vuzzer. You can take a look in the appflowy_editor `mobile` branch. we have removed the highlight item and separated the text color and the background color into two items. Hey @LucasXu0, Thank you very much, I am looking into it.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AppFlowy-IO/AppFlowy#9464
No description provided.