Skip to content

Bard toolbar: bulletList/orderedList buttons not shown as active when cursor is inside a list #14305

@JanbresseleersSevendays

Description

Bug description

When using the Bard fieldtype, the toolbar buttons for bulletList and orderedList do not show an active/highlighted state when the cursor is positioned inside a list.

Other toolbar buttons like bold, italic, etc. correctly show as active when the cursor is in text with that formatting applied. The list buttons should behave the same way.

How to reproduce

Steps to reproduce

  1. Create a Bard field with bulletList and orderedList enabled
  2. Type some text and convert it to an unordered or ordered list
  3. Place the cursor inside the list text
  4. Observe the toolbar — the list button is not highlighted/active

Expected behavior

The bulletList / orderedList button should appear active (highlighted) when the cursor is inside a list, similar to how the bold button appears active when the cursor is in bold text.

Logs

Environment

- Statamic 6.6.3
- Laravel 12
- PHP 8.3

Installation

Fresh statamic/statamic site via CLI

Additional details

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions