Skip to content

[Bug]: sp-action-group sets z-index on focused button #5815

@dialupdev

Description

@dialupdev

Code of conduct

  • I agree to follow this project's code of conduct.

Impacted component(s)

sp-action-group

Library version

1.7.0

Expected behavior

Any sp-action-button components within an sp-action-group should not have their z-index modified.

Actual behavior

Focused sp-action-button components within an sp-action-group have a modified z-index of 3.

Screenshots

Image

What browsers are you seeing the problem in?

Chrome

How can we reproduce this issue?

  1. Go to https://stackblitz.com/edit/vitejs-vite-a9znncub
  2. Use keyboard navigation to focus one of the buttons
  3. Scroll down
  4. Observe that the focused button overlaps the sticky header

Sample code or abstract reproduction which illustrates the problem

I've found the problematic code here:
https://github.com/adobe/spectrum-web-components/blob/main/packages/action-group/src/spectrum-action-group.css#L43

The fix is simple - remove this line. But I wanted to open this issue first since I don't understand why the code is there in the first place.

Severity

None

Logs taken while reproducing problem

No response

Would you like to track this issue in Jira?

  • Yes, please tell me the ticket number!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: Action groupSEV 4Minor design flaw that affects UX, but no serious impact on overall usability or functionalitybugSomething isn't workingjira ticket createdTODO: Delete label once Jira integration is completetriageAn issue needing triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions