Color swatch does not appear for default ==highlight== in Live Preview

Description

In Obsidian 1.14.4, the new highlight color swatch does not appear when the cursor is placed inside a standard/default highlight.

Steps to reproduce

  1. Open Obsidian 1.14.4.

  2. Open the Sandbox vault.

  3. Create a new note.

  4. Enter:

    ==This is a default highlight==

  5. Make sure the note is in Live Preview.

  6. Place the cursor inside the highlighted text.

Actual result

No color swatch/palette appears.

However, if I use an explicit color:

==🟢This is a green highlight==

the color swatch appears as expected.

Expected result

The color swatch should also appear for the default ==text== highlight, allowing me to change the default yellow highlight to another color.

Reproduction

The problem occurs in the Sandbox vault as well, so it is reproducible without my normal vault, theme, plugins, or CSS snippets.

Environment

  • Obsidian: 1.14.4

  • Platform: Windows

  • Editor: Live Preview

  • Reproduces in Sandbox vault: Yes

Additional information

The issue makes it impossible to use the new inline color picker to change an existing standard/default yellow highlight. Explicitly colored highlights work correctly.

the color swatch appears only if you click on the colored circle.

In the default highlight there’s no colored circle.

All of this is intentional.

You can change the highlight color via commands/hotkeys and via the right click contex menu.

Thanks for the clarification!

For me, the main benefit of the new highlight colors would be the ability to easily assign different colors to text I’ve already highlighted.

My usual workflow is to select text and use the keyboard shortcut to highlight it. Afterwards, I might want to change its color depending on its meaning or importance.

I find it unintuitive that the color picker is only available for explicitly colored highlights. If I want to change the color of a default highlight, I have to use a different interaction, such as a command or hotkey, instead of simply clicking on the highlight.

Having to manually edit the markup just to access the color picker would feel equally unnatural. I don’t want to insert == before the text just to make the color picker appear.

Since I already have a lot of existing highlights in my notes, being able to quickly recolor them would be one of the most useful aspects of this feature. Without that functionality, much of its value is lost for me.

I’d really appreciate it if the color picker could be made accessible for default highlights as well, so that changing the color is a natural part of the existing highlighting workflow.

Please, open a Feature Request for this for this.