Skip to content

fix: remove disabled guard from button Lumo hover styles#11548

Merged
web-padawan merged 1 commit intomainfrom
fix/lumo-item-disabled-hover
Apr 23, 2026
Merged

fix: remove disabled guard from button Lumo hover styles#11548
web-padawan merged 1 commit intomainfrom
fix/lumo-item-disabled-hover

Conversation

@vursen
Copy link
Copy Markdown
Contributor

@vursen vursen commented Apr 23, 2026

Description

When the accessibleDisabledButtons feature flag was originally implemented, the :not([disabled]) guard was left on the button Lumo hover styles, which prevented disabled-but-accessible buttons from showing hover feedback. This removes the guard so hover feedback is consistent with the focusable/hoverable behavior the flag enables. Disabled buttons without the flag have pointer-events: none, so :hover does not fire and the visual stays unchanged.

Type of change

  • Bugfix

🤖 Generated with Claude Code

Align with the item Lumo styles where the :not([disabled]) guard was
removed so accessible disabled elements still show hover feedback when
the corresponding feature flag is enabled. Disabled buttons without
accessibleDisabledButtons have pointer-events: none, so :hover doesn't
fire anyway. This also matches :host([active])::before in the same file,
which has no guard.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@sonarqubecloud
Copy link
Copy Markdown

@web-padawan web-padawan merged commit fc95944 into main Apr 23, 2026
10 checks passed
@web-padawan web-padawan deleted the fix/lumo-item-disabled-hover branch April 23, 2026 13:02
web-padawan pushed a commit that referenced this pull request Apr 23, 2026
…1551)

Co-authored-by: Sergey Vinogradov <mr.vursen@gmail.com>
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
web-padawan pushed a commit that referenced this pull request Apr 23, 2026
…1550)

Co-authored-by: Sergey Vinogradov <mr.vursen@gmail.com>
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@vaadin-bot
Copy link
Copy Markdown
Collaborator

This ticket/PR has been released with Vaadin 25.2.0-alpha4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants