Content hidden when printing#86
Content hidden when printing#86robinpoort wants to merge 2 commits intocferdinandi:masterfrom robinpoort:master
Conversation
|
So, two things:
|
In that light, putting in an option, and making devs aware that people might printing their pages might still be a valid option though? If not, I'll just add the print CSS to each individual project which needs it. Just thought I'd share and give back :) |
|
That's a fair point. Let me check with some a11y friends around expectations for something like this. Thanks! |
As I was working on a client site today I realised that Houdini content was hidden and only the Houdini buttons were displayed. Because I know you care about displaying content when JS is disabled I figured you'd want the same experience when printing the web.
As a second feature the auto-generated buttons are also hidden on print. The buttons inside
[data-houdini-toggle]stay visible since they act as headings for the toggled content.An even better approach would be to make these settings by using SCSS variables so you can easily override compiled output when compiling the styling in your own projects. Let me know if you'd be interested in that so I can create an issue for it and start working on that.