Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

[terra-application] Added prop to control the zIndex of overlay provider #367

Merged
merged 2 commits into from
Mar 8, 2024

Conversation

adavijit
Copy link
Collaborator

@adavijit adavijit commented Mar 7, 2024

Summary

What was changed:
Added a private prop in ApplicationBase and ApplicationStatusOverlayContext to control the z-index.

Why it was changed:
Terra ApplicationBase resets the DOM's stacking order, causes problems for sibling MPageFusion components that rely upon an inherited, relative z-index and stacking order. So there should be the ability to control when Overlay providers reset their z-index.
By default the z-index value is set to zero(0). The consuming components can pass zIndex prop to set the z-index of ApplicationBase and ApplicationStatusOverlayContext.

Testing

This change was tested using:

  • WDIO
  • Jest
  • Visual testing (please attach a screenshot or recording)
  • Other (please describe below)
  • No tests are needed

Reviews

In addition to engineering reviews, this PR needs:

  • UX review
  • Accessibility review
  • Functional review

Additional Details

This PR resolves:

UXPLATFORM-10287


Thank you for contributing to Terra.
@cerner/terra

@adavijit adavijit self-assigned this Mar 7, 2024
@adavijit adavijit requested a review from saket2403 March 7, 2024 12:23
@github-actions github-actions bot temporarily deployed to preview-pr-367 March 7, 2024 12:23 Destroyed
@github-actions github-actions bot temporarily deployed to preview-pr-367 March 8, 2024 05:47 Destroyed
@sugan2416 sugan2416 merged commit c550db5 into main Mar 8, 2024
7 checks passed
@sugan2416 sugan2416 deleted the UXPLATFORM-10287 branch March 8, 2024 11:12
adavijit pushed a commit that referenced this pull request Mar 11, 2024
sugan2416 pushed a commit that referenced this pull request Mar 11, 2024
…ers (#368)

* Revert "[terra-application] Added prop to control the zIndex of overlay provider (#367)"

This reverts commit c550db5.

* UXPLATFORM-10287 Updated jest screenshots

* UXPLATFORM-10287 Updated wdio screenshots

---------

Co-authored-by: Avijit Das <avijit.das@cerner.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants