Skip to content

Commit

Permalink
fix: z-index in accordion header renders above content (#20587)
Browse files Browse the repository at this point in the history
* Change files

* Fixes z-index in headers above content region

* Shared style for position.
  • Loading branch information
robarbms authored Dec 10, 2021
1 parent 3360b45 commit 89deee5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "fix: z-index in accordion header renders above content",
"packageName": "@fluentui/web-components",
"email": "robarb@microsoft.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ export const accordionItemStyles: (
position: relative;
grid-template-columns: auto 1fr auto auto;
align-items: center;
z-index: 2;
}
.button {
Expand All @@ -105,7 +104,6 @@ export const accordionItemStyles: (
left: 0;
right: 0;
bottom: 0;
z-index: 1;
cursor: pointer;
}
Expand Down Expand Up @@ -133,7 +131,6 @@ export const accordionItemStyles: (
align-items: center;
justify-content: center;
grid-column: 4;
z-index: 2;
pointer-events: none;
background: ${neutralFillStealthRestOnNeutralFillLayerRest};
border-radius: calc(${controlCornerRadius} * 1px);
Expand Down Expand Up @@ -173,15 +170,19 @@ export const accordionItemStyles: (
padding-inline-start: calc(${designUnit} * 2 * 1px);
justify-content: center;
grid-column: 1;
z-index: 2;
}
.end {
display: flex;
align-items: center;
justify-content: center;
grid-column: 3;
z-index: 2;
}
.icon,
.start,
.end {
position: relative;
}
`.withBehaviors(
forcedColorsStylesheetBehavior(
Expand Down

0 comments on commit 89deee5

Please sign in to comment.