alphagov / government-frontend

Serves government pages on GOV.UK
https://docs.publishing.service.gov.uk/apps/government-frontend.html
MIT License
54 stars 17 forks source link

Improve print styles for right-to-left (RTL) content. #3404

Open matthillco opened 2 weeks ago

matthillco commented 2 weeks ago

What

Improvements to components and layouts so that right-to-left (RTL) content renders correctly when printing*. This is part of the work to improve print styles more generally. Trello

Note: This PR depends on https://github.com/alphagov/govuk_publishing_components/pull/4365 and https://github.com/alphagov/collections/pull/3835 and the After screenshots below include those dependecies.

* Although this PR is specifically about print styles, some fixes also apply to the screen rendering due to problems originating in the screen styles.

Why

Some pages are broken for foreign languages that read right to left, with styles not set correctly for the changed direction.

Visual Changes

Publications Page

Before After
image image

News Article

Before After
image image

Speech

Before After
image image