Skip to content

Commit

Permalink
[EuiOverlayMask] Restore missing above/below header information (#6289)
Browse files Browse the repository at this point in the history
* Add [data-realative-to-header] attribute with above/below information

* changelog
  • Loading branch information
Constance authored Oct 4, 2022
1 parent adfd54b commit 594a4d0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/overlay_mask/overlay_mask.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ export const EuiOverlayMask: FunctionComponent<EuiOverlayMaskProps> = ({
useEffect(() => {
if (!overlayMaskNode) return;
overlayMaskNode.className = classNames('euiOverlayMask', className);
}, [overlayMaskNode, className]);
overlayMaskNode.dataset.relativeToHeader = headerZindexLocation;
}, [overlayMaskNode, className, headerZindexLocation]);

return (
<EuiPortal portalRef={combinedMaskRef}>
Expand Down
3 changes: 3 additions & 0 deletions upcoming_changelogs/6289.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
**Bug fixes**

- Fixed `EuiOverlayMask` to set a `[data-relative-to-header=above|below]` attribute to replace the `--aboveHeader` and `--belowHeader` classNames removed in its Emotion conversion

0 comments on commit 594a4d0

Please sign in to comment.