-
Notifications
You must be signed in to change notification settings - Fork 0
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(accessibilityFixes): Accessibility Fixes #27
Conversation
… to allow for skip to main button
…to bottom, removed unneeded import
…nt for Head in _document.tsx
const PageTitle: React.FC<PageTitleProps> = ({ pageName }) => { | ||
return ( | ||
<Head> | ||
<title>{`${pageName} | HEAL Data Platform`}</title> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we compensate for if pageName
is not provided?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is ok for now
- If another DEV creates a page using the PageTitle component, TypesScript will require that they pass the pageName prop with a string
- If a page is created without the PageTitle component, the user's web browser will display the URL of the page or the name of the website as the title in the title bar or tab. In some cases, it may also show "Untitled" or a similar default message, depending on the browser being used.
- If we need different functionality going forward, like pages with a default page title such as only "HEAL Data Platform" we can add that functionality when needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sounds good
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
overall great except for a minor question
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a background color to the quote section, like hero section. In the event that the image is not displayed, we need a fallback color to ensure the quote text is still visible. Additionally, please ensure the color contrast ratio between the text and background meets accessibility standards for readability.
Link to JIRA ticket if there is one:
https://ctds-planx.atlassian.net/browse/HP-1748
Accessibility Fixes
<title>
element to both pages: the HTML titles will use format "Page Title | HEAL Data Platform"lang="en"
attribute to<html>
element<main>
elementBEFORE


AFTER

Skip to main added:
Automated axe DevTools tests pass 100%


Improvements