-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Fix opening the menu in a share page #7566
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
".popovermenu" elements are visible or not depending on whether they also have the "open" CSS class or not. "#header .menu" elements were always hidden, so when both rules applied to the same element, like in the menu of a Share page, the element was always hidden due to "#header .menu" being more specific than ".popovermenu" and thus overriding its rules. Now, "#header .menu" elements are hidden only if they are not a ".popovermenu" too. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
danxuliu
added
3. to review
Waiting for reviews
bug
design
Design, UI, UX, etc.
regression
labels
Dec 19, 2017
Codecov Report
@@ Coverage Diff @@
## master #7566 +/- ##
=========================================
Coverage 51.16% 51.16%
Complexity 24883 24883
=========================================
Files 1602 1602
Lines 94731 94731
Branches 1368 1368
=========================================
Hits 48472 48472
Misses 46259 46259
|
MorrisJobke
approved these changes
Dec 19, 2017
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and works 👍
rullzer
approved these changes
Dec 19, 2017
Thanks a lot @danxuliu! |
Thanks @danxuliu 💘 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request fixes a regression introduced in commit 2348d14. Since that commit the menu of a Shared file page (in the Files app, open the right sidebar and the Sharing tab for a file, enable Share link and open that link) is no longer opened when clicking on the top right area of the header.
.popovermenu
elements are visible or not depending on whether they also have theopen
CSS class or not.#header .menu
elements were always hidden, so when both rules applied to the same element, like in the menu of a Share page, the element was always hidden due to#header .menu
being more specific than.popovermenu
and thus overriding its rules. Now,#header .menu
elements are hidden only if they are not a.popovermenu
too.