Skip to content

Visual and accessibility audit of i18n changes (PP-4711) - #198

Merged
PoorBillyPilgrim merged 2 commits into
mainfrom
fix/i18n-cleanup
Sep 14, 2026
Merged

PoorBillyPilgrim merged 2 commits into
mainfrom
fix/i18n-cleanup

Conversation

@PoorBillyPilgrim

Copy link
Copy Markdown
Contributor

Some minor changes to fix some visual and accessibility issues caused when translations were added:

  • Prevent LanguageSelector from being hidden behind book covers in mobile view

    • Screenshot 2026-09-09 at 8 51 37 AM
  • Provide localized title for Search component

    • The only instance of the Search component is being used in the header to conduct catalog-wide searches. The value returned on searchData.shortName cannot be guaranteed to be any particular value, but the majority of libraries provide "Search" as its value for which a translation can be provided. If any other value is provided that is not found in the translations, then the value from searchData.shortName will be used.

Note

SearchData.shortName should never be null or undefined, but because searchData has been optionally chaining shortName then we'll maintain that check and provide an alternative value in case of any unlikely runtime errors.

Motivation and Context

A final audit was needed to ensure translations met accessibility standards and that translations did not change or break visual layout of the UI:

  • The LanguageSelector menu was not usable on small screen sizes.
  • The title attribute of inputs must be localized in order to meet accessibility standards.

Jira PP-4711

How Has This Been Tested?

  • Tested manually from local server
  • Existing tests pass

Checklist:

  • I have updated the documentation accordingly.
  • All new and existing tests passed.

- LanguageSelector is hidden behind book cover on mobile view
- provide localized title for Search input

@tdilauro tdilauro left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This looks good! 🎉

Just a few questions / minor suggestions below.

Comment thread src/components/Search.tsx Outdated
Comment thread src/components/Search.tsx
@coveralls

Copy link
Copy Markdown

Coverage Report for CI Build 34868574765

Coverage remained the same at 30.142%

Details

  • Coverage remained the same as the base build.
  • Patch coverage: No coverable lines changed in this PR.
  • No coverage regressions found.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 2090
Covered Lines: 730
Line Coverage: 34.93%
Relevant Branches: 1503
Covered Branches: 353
Branch Coverage: 23.49%
Branches in Coverage %: Yes
Coverage Strength: 9.76 hits per line

💛 - Coveralls

@PoorBillyPilgrim
PoorBillyPilgrim merged commit 8ab8a2b into main Sep 14, 2026
7 checks passed
@PoorBillyPilgrim
PoorBillyPilgrim deleted the fix/i18n-cleanup branch September 14, 2026 16:44
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