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(accessibility): add entity type to details page titles #894

Merged
merged 2 commits into from
Sep 27, 2024

Conversation

LavMatt
Copy link
Contributor

@LavMatt LavMatt commented Sep 27, 2024

This PR makes entity type appear on page title for accessibility needs

It required a slight refactor of the templates because having a separate head template in base meant we couldn't override the title value for details pages (templates need to be directly extended to have values overridden)- so now there is no head template and the contents of head is contained within base

Resolves #879

this is required so we can override the base title where more information is needed for accessibility
the base template needs to be extended in the child for the override and having head included in base meant we could not override
adds in a title block to override the title in base by adding entity type to h1_value
@LavMatt LavMatt marked this pull request as ready for review September 27, 2024 11:42
@LavMatt LavMatt requested a review from a team as a code owner September 27, 2024 11:42
@LavMatt LavMatt merged commit 09d1bae into main Sep 27, 2024
11 checks passed
@LavMatt LavMatt deleted the fmd-879-accessibility-fix-page-titles branch September 27, 2024 12:00
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.

Accessibility: update page titles to include the entity type
2 participants