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

Allow <nav> elements to be printed #610

merged 3 commits into from Jun 26, 2015

Allow <nav> elements to be printed #610

merged 3 commits into from Jun 26, 2015


Copy link

@fofr fofr commented Jun 26, 2015

This is to fix printed topic pages, which were showing as completely blank. See:

  • Introduce a helper class for hiding content when printing dont-print
  • Allow nav elements to be printed
  • But continue to hide nav elements found within a header, eg a proposition menu

These changes have been tested against the most popular printed pages. (One notable change is that related links blocks now show a header as well as the list of links, rather than a header without any content.)


screen shot 2015-06-26 at 15 44 20


screen shot 2015-06-26 at 15 44 49

cc @edds

fofr added 3 commits Jun 25, 2015
Add a helper class to make it easy to avoid printing any given HTML
element and be explicit about it. This should reduce reliance on more
generic print styles.
Topic pages are essentially all `nav`, so when printed they currently
print just a blank page. Allow `nav` elements to be printed again.

Nav elements within a header are typically site navigation and not page
content, and should continue to be hidden. (See Whitehall’s proposition
edds added a commit that referenced this pull request Jun 26, 2015
Allow <nav> elements to be printed
@edds edds merged commit 6c5a9c8 into master Jun 26, 2015
1 check passed
1 check passed
default "Build #522 succeeded on Jenkins"
@edds edds deleted the print-navs branch Jun 26, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.