Skip to content

Toolbar formatting buttons (Bold/Underline/etc.) do not reflect active formatting state #2903

@Prthmsh7

Description

@Prthmsh7

Currently, formatting buttons in the toolbar such as Bold, Italic, and Underline behave as momentary action buttons. When clicked, the formatting is applied, but the button immediately returns to its default visual state.

This creates a usability issue because the toolbar does not reflect the current formatting context of the cursor or selection.

Image

Current Behavior

  1. Clicking Bold applies bold formatting.
  2. The Bold button does not remain visually selected.
  3. When the cursor is placed inside already bold text, the Bold button does not indicate that bold formatting is active.

Before the fix :

Screen.Recording.2026-03-01.at.4.30.16.PM.mov

After the fix :

Screen.Recording.2026-03-01.at.4.41.28.PM.mov

I've made a fix and will attach the PR soon

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions