ecmarkup icon indicating copy to clipboard operation
ecmarkup copied to clipboard

Fix: print styles for web visitors

Open gesa opened this issue 3 months ago • 3 comments

I got a little nerd sniped on Mastodon by a conversation about accessibility and print styles. Browsers mostly don't implement the CSS paged media module, and the web version of typical ecmarkup output doesn't use the oldtoc class, so I needed to add just a few little things to make the site printable for web visitors.

[!IMPORTANT]
I fully admit I appended some print-related event listeners to a javascript file (sdoMap.js) that I didn't otherwise spend the time to totally understand. I'm trusting the baseline knowledge of reviewers for this repo to tell me if that can/should go somewhere else.

gesa avatar Sep 12 '25 17:09 gesa

Can you go into a little more detail about what this PR actually accomplishes?

michaelficarra avatar Sep 15 '25 19:09 michaelficarra

It improves the readability of the document for visitors wishing to generate paged media. It's an accessibility improvement.

gesa avatar Oct 05 '25 15:10 gesa

I get that, but the question was how do these styles and the moved around DOM nodes help the readability?

michaelficarra avatar Oct 06 '25 22:10 michaelficarra