Skip to content

[1.x & 2.x] Toggle announcement button tooltip overridden by title #4596

@claudiushenrichs

Description

@claudiushenrichs

Current Behavior

When using the "Show/hide announcement" button toggle on the admin announcements widget the opposite button state after a page load is not showing the correct tooltip layout. Instead it simply shows the browser "tooltip" on long hover which is coming from a wrongly set "title" attribute.

Steps to Reproduce

  1. In admin dashboard hover the mouse cursor over the eye button top right of the announcement widget => Observe the correct tooltip layout explaining the button's purpose
  2. Click it once and hover again => Observe the missing tooltip. Instead after a longer hover wait you will see the browser tooltip shown. If you reload the page now the button will show the correct tooltip styling

Expected Behavior

Hide/show announcements button should always show the same tooltip style on hover.

Screenshots

Screen.Recording.2026-04-20.at.19.57.37.mov

Environment

  • Flarum version: 2.0.0-rc.1
  • Browser: Chrome 147

Output of php flarum info

No response

Possible Solution

When using the toggle button for the first time the updated button element gets a title attribute with the correct tooltip text.

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions