Skip to content

Fix "New" menu shown behind the multiselect header in the file list - #7728

Merged
MorrisJobke merged 1 commit into
masterfrom
fix-new-menu-shown-behind-the-controls-in-the-file-list
Jan 8, 2018
Merged

Fix "New" menu shown behind the multiselect header in the file list#7728
MorrisJobke merged 1 commit into
masterfrom
fix-new-menu-shown-behind-the-controls-in-the-file-list

Conversation

@danxuliu

@danxuliudanxuliu commented Jan 8, 2018

Copy link
Copy Markdown
Member

This pull request fixes a regression introduced in #7663

The New menu is a descendant of the controls bar, and the controls bar and the multiselect header belong to the same stacking context. As they had the same z-index but the multiselect header appears after the controls bar in the DOM the controls bar and its descendants, including the New menu, were rendered behind the multiselect header.

files-menu-new-before

Now the controls bar has a z-index value higher than the one used for the multiselect header to ensure that the New menu is rendered in front of the multiselect header.

files-menu-new-after

@nextcloud/designers

The "New" menu is a descendant of the controls bar, and the controls bar
and the multiselect header belong to the same stacking context. As they
had the same z-index but the multiselect header appears after the
controls bar in the DOM the controls bar and its descendants, including
the "New" menu, were rendered behind the multiselect header. Now the
controls bar has a z-index value higher than the one used for the
multiselect header to ensure that the "New" menu is rendered in front of
the multiselect header.
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
@codecov

codecovBot commented Jan 8, 2018

Copy link
Copy Markdown

Codecov Report

Merging #7728 into master will not change coverage.
The diff coverage is n/a.

@@ Coverage Diff @@## master #7728 +/- ##
=========================================
Coverage 51.18% 51.18% Complexity 24948 24948 =========================================
Files 1605 1605 Lines 94923 94923 Branches 1376 1376 =========================================
Hits 48584 48584 Misses 46339 46339
Impacted FilesCoverage ΔComplexity Δ
lib/private/Security/CertificateManager.php91.08% <0%> (-1%)39% <0%> (ø)
apps/files_trashbin/lib/Trashbin.php72.28% <0%> (-0.25%)136% <0%> (ø)
lib/private/Server.php81.55% <0%> (+0.11%)134% <0%> (ø)⬇️
lib/private/Files/Cache/Propagator.php96.2% <0%> (+1.26%)16% <0%> (ø)⬇️

@MorrisJobke
MorrisJobke merged commit ecf8850 into masterJan 8, 2018
@MorrisJobke
MorrisJobke deleted the fix-new-menu-shown-behind-the-controls-in-the-file-list branch January 8, 2018 07:33
@MorrisJobkeMorrisJobke mentioned this pull request Jan 9, 2018
18 tasks
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@danxuliu@MorrisJobke@skjnldsv