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

Fix markup (and therefore styling) of RTL history mode banner #3350

Merged
merged 1 commit into from
Oct 1, 2024

Conversation

ChrisBAshton
Copy link
Contributor

@ChrisBAshton ChrisBAshton commented Oct 1, 2024

Depends on alphagov/publishing-api#2901.

Right-to-left languages were displaying the government name in an unusual way, treating the government name as translated text even though it is still English. This commit fixes the text direction, as well as setting the correct language for the text snippet.

Before:
to 2024 Sunak Conservative government 2022

After:
2022 to 2024 Sunak Conservative government

Trello: https://trello.com/c/dyyPjZxD/2870-history-mode-banners-in-foreign-languages-govt-agency-general-issue

⚠️ This repo is Continuously Deployed: make sure you follow the guidance ⚠️

Follow these steps if you are doing a Rails upgrade.

@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-3350 October 1, 2024 11:42 Inactive
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-3350 October 1, 2024 14:55 Inactive
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-3350 October 1, 2024 15:06 Inactive
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-3350 October 1, 2024 15:17 Inactive
Copy link

@lauraghiorghisor-tw lauraghiorghisor-tw left a comment

Choose a reason for hiding this comment

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

Haha was just commenting to inline the span in the _history_notice.html.erb 😅
LGTM 🚢

Right-to-left languages were displaying the government name in
an unusual way, treating the government name as translated text
even though it is still English. This commit fixes the text
direction, as well as setting the correct language for the text
snippet.

Before:
![to 2024 Sunak Conservative government 2022](https://github.com/user-attachments/assets/999781ba-8f6e-4c03-8f6d-00d9b8921c4c)

After:
![2022 to 2024 Sunak Conservative government](https://github.com/user-attachments/assets/d94c7979-03f3-46ca-bc97-4a86951a8b31)
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-3350 October 1, 2024 15:25 Inactive
@ChrisBAshton ChrisBAshton merged commit 6e4e55a into main Oct 1, 2024
11 checks passed
@ChrisBAshton ChrisBAshton deleted the fix-rtl-history-mode-banner branch October 1, 2024 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants