Skip to content

report: fix ghost menu in print #10216

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

Merged
merged 1 commit into from
Jan 14, 2020
Merged

report: fix ghost menu in print #10216

merged 1 commit into from
Jan 14, 2020

Conversation

johnemau
Copy link
Contributor

Summary
Problem
Print displays the tools drop down menu, rendering behind the category
headings.

Screenshot of menu rendered in report print preview
image

Root cause
The drop down menu is made hidden by the CSS visibility: hidden and
toggled to visibility: visible when displayed to users and the print
media does not support this property (citation needed).

Solution
Use display: none for the print media query to hide it (print media
does not support drop drop interactions).

Screenshot of menu hidden in report print preview
image

**Summary**
***Problem***
Print displays the tools drop down menu, rendering behind the category
headings.

***Root cause***
The drop down menu is made hidden by the CSS `visibility: hidden` and
toggled to `visibility: visible` when displayed to users and the print
media does not support this property (citation needed).

***Solution***
Use `display: none` for the `print` media query to hide it (print media
does not support drop drop interactions).
@johnemau
Copy link
Contributor Author

FYI @connorjclark

Copy link
Collaborator

@connorjclark connorjclark left a comment

Choose a reason for hiding this comment

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

thanks!

@connorjclark connorjclark changed the title report(drop-down-menu): fix ghost menu in print report: fix ghost menu in print Jan 14, 2020
@connorjclark connorjclark merged commit e0dbb0a into GoogleChrome:master Jan 14, 2020
Sign up for free to 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