Skip to content
This repository was archived by the owner on Jul 7, 2025. It is now read-only.

Updates a11y guidance for the RelativeTime component#795

Merged
TylerJDev merged 5 commits into
mainfrom
lw/update-relative-time-a11y-guidance
Aug 21, 2024
Merged

Updates a11y guidance for the RelativeTime component#795
TylerJDev merged 5 commits into
mainfrom
lw/update-relative-time-a11y-guidance

Conversation

@lindseywild
Copy link
Copy Markdown
Contributor

@lindseywild lindseywild requested a review from smockle May 31, 2024 15:51
Comment thread content/components/relative-time.mdx Outdated

General recommended approaches are:

* For interactive elements (such as making the RelativeTime component a link), use the accessible [Primer Tooltip](https://primer.style/components/tooltip) to display the full date/time and hide the `title` attribute. There are examples on the React and Rails pages with this approach.
Copy link
Copy Markdown
Member

@smockle smockle May 31, 2024

Choose a reason for hiding this comment

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

Non-blocking: I’m a little worried that—because this paragraph links to the Tooltip docs—someone will search the React and Rails Tooltip pages for examples.

Could we link directly to the relevant RelativeTime stories, in Storybook/Lookbook (once they’re published)?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes good call! Once those are merged I will update these links!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Updated w/the Rails example, waiting until React's version has released and shipped in Storybook before updating the link to that one!

@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 5, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
design ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 5, 2024 4:00pm

@lindseywild lindseywild marked this pull request as ready for review June 12, 2024 19:26
@lindseywild lindseywild requested a review from a team as a code owner June 12, 2024 19:26
@TylerJDev TylerJDev merged commit f3524f7 into main Aug 21, 2024
@TylerJDev TylerJDev deleted the lw/update-relative-time-a11y-guidance branch August 21, 2024 21:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants