Skip to content

Guidelines for z-index Usage and Standardization #15214

@sgraband

Description

@sgraband

Feature Description:

We should establish comprehensive guidelines for the usage of z-index values across our project to ensure consistency and maintainability. The goal is to create a clear mapping of z-index ranges for different UI components. So as an example (list to be extended and adjusted):

Base Layer: 0-100
Side Panels: 500-600
Modal Dialogs: 700-800
Menus: 800-900
Hover Elements: 1000+

Additionally, we need to consider z-index values from third-party libraries, such as the Monaco Editor, to prevent conflicts, by either overwriting them or cosnidering their values as given.

TODO:

  • Propose and finalize z-index ranges: Collaborate on determining specific ranges for different UI components.
  • Establish as variables: Implement these z-index values as variables (possibly in a CSS/SCSS file) so they can be reused throughout the application, allowing for easier adjustments.
  • Review existing z-index usages: Create a pull request to adjust all current z-index values according to the new guidelines, ensuring we identify any components that might have inappropriate default values.

Please share your suggestions or additional z-index ranges you think are necessary!

Metadata

Metadata

Assignees

No one assigned

    Labels

    cssIssues related to CSS functionalityenhancementissues that are enhancements to current functionality - nice to haves

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions