Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default z-index alignment needed with design system #1351

Open
NicDominguez opened this issue Oct 8, 2024 · 0 comments
Open

Default z-index alignment needed with design system #1351

NicDominguez opened this issue Oct 8, 2024 · 0 comments

Comments

@NicDominguez
Copy link
Contributor

NicDominguez commented Oct 8, 2024

Describe the bug

The default z-index values for several of the web-components are not aligned with the proper component hierarchy for the design system. For example, the classification marking appears below the dialog modal background. We should revisit this hierarchy and ensure that the default styles reflect the proper visual hierarchy.

To Reproduce

See code sandbox demo

Current behavior

The default hierarchy for components meant to overlap other components appears to be as follows:

RuxDialog
RuxTooltip
RuxToast
RuxPopUp
RuxClassificationMarking
RuxNotificationBanner/RuxGlobalStatusBar

Expected behavior

To align with standards it should be:

RuxTooltip
RuxClassificationMarking
RuxDialog
RuxPopUp
RuxToast
RuxGlobalStatusBar/RuxNotificationBanner

With the general rule of any component should appear over its parent container. For example, a tooltip on text within a toast message should appear over the toast.

Screenshots
image
image

CodeSandbox
https://codesandbox.io/p/sandbox/astro-z-index-issue-nn4dw3

Environment (please complete the following information):

  • Browser = chrome
  • @astrouxds/astro-web-components version = 7.23.0
  • Framework = React
  • Framework wrapper version = @astrouxds/react

Additional context
None

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant