[FIX] Remove z-index on focused button #712
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

This PR fixes #711 - it looks like I added a
z-index: 1to focused buttons when I created the ButtonGroup component. As far as I can tell, this is a remnant of handling the button group css within the Button component and isn't necessary because we're setting thez-indexof buttons inside ButtonGroup within theButtonGroupstyles.It's fine to leave the z-index of the button elements inside of the ButtonGroup component since they are children of
ButtonGroupand the entire group should sit wherever ButtonGroup is in the stacking context. I've double checked this with the test environment that @acknosyn provided in #711 reproducing the bug. UsingButtonGroupworks fine in that test case.Screenshots
Please provide before/after screenshots for any visual changes
Merge checklist
index.d.ts) if necessaryTake a look at the What we look for in reviews section of the contibuting guidelines for more infomation on how we review PRs.