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

Using custom properties for z-index values #6733

Merged
merged 5 commits into from
Dec 13, 2022

Conversation

aleksfront
Copy link
Contributor

@aleksfront aleksfront commented Dec 12, 2022

Create new and manage available stacking contexts for new elements became difficult. It's hard to select proper z-index value for the element which cover other elements because there are many z-indexes may overlap each other.

Providing css custom properties in app.scss in order to fight with arbitrary z-index values spread across codebase. It is encouraged to use these properties for any new pages or elements if needed.

// app.scss
--z-index-base: 0;
--z-index-above: 1;
--z-index-modals: 2;
--z-index-menus: 3;
--z-index-topmost: 9999;

settings
hotbar

dialog.mov

namespace filter

Signed-off-by: Alex Andreev alex.andreev.email@gmail.com

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
@aleksfront aleksfront added this to the 6.2.6 milestone Dec 12, 2022
@aleksfront aleksfront requested a review from a team as a code owner December 12, 2022 10:15
@aleksfront aleksfront requested review from jansav and removed request for a team December 12, 2022 10:15
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
ixrock
ixrock previously approved these changes Dec 12, 2022
Copy link
Member

@ixrock ixrock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Idea for better management of UI layers LGTM, some naming changes might require to apply.

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
@aleksfront aleksfront modified the milestones: 6.2.6, 6.3.0 Dec 13, 2022
Copy link
Member

@ixrock ixrock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@aleksfront aleksfront merged commit 4af8fba into master Dec 13, 2022
@aleksfront aleksfront deleted the enhancement-z-index-order branch December 13, 2022 13:36
@Nokel81 Nokel81 mentioned this pull request Dec 20, 2022
aleksfront added a commit that referenced this pull request Dec 22, 2022
This reverts commit 4af8fba.

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
Nokel81 pushed a commit that referenced this pull request Dec 22, 2022
This reverts commit 4af8fba.

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
@Nokel81 Nokel81 mentioned this pull request Jan 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants