Skip to content

fix(forms): maintain hover/focus state with sibling form-control-actions#2024

Open
spike-rabbit wants to merge 1 commit intomainfrom
fix/form-control/keep-hover-actions
Open

fix(forms): maintain hover/focus state with sibling form-control-actions#2024
spike-rabbit wants to merge 1 commit intomainfrom
fix/form-control/keep-hover-actions

Conversation

@spike-rabbit
Copy link
Copy Markdown
Member

@spike-rabbit spike-rabbit commented May 7, 2026

Previously, when hovering/focusing form-control-actions that where a sibling, the hover/focus state was removed from the input.
With this change, it sticks except for the focus ring.


Documentation.
Examples.
Dashboards Demo.
Playwright report.

Coverage Reports:

Code Coverage

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces E2E tests and visual snapshots for the si-datepicker calendar button's focus and hover states. It also updates the form control and validation SCSS to handle interaction states when sibling actions are hovered or focused using the :has() pseudo-class. Feedback focused on refining these selectors to exclude disabled or readonly states and ensuring consistent focus behavior within validation groups.

Comment thread projects/element-theme/src/styles/bootstrap/forms/_validation.scss Outdated
@spike-rabbit spike-rabbit force-pushed the fix/form-control/keep-hover-actions branch 2 times, most recently from d14a0d4 to 8d65e97 Compare May 7, 2026 11:24
@spike-rabbit spike-rabbit marked this pull request as ready for review May 7, 2026 11:43
@spike-rabbit spike-rabbit requested review from a team as code owners May 7, 2026 11:43
Previously, when hovering/focusing form-control-actions that where a sibling,
the hover/focus state was removed from the input.
With this change, it sticks except for the focus ring.
@spike-rabbit spike-rabbit force-pushed the fix/form-control/keep-hover-actions branch from 8d65e97 to 68585cc Compare May 7, 2026 11:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant