-
Notifications
You must be signed in to change notification settings - Fork 116
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
feat: Add no_title
support (and stories) for RelativeTime
#2872
Conversation
🦋 Changeset detectedLatest commit: be53b7d The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
previews/primer/beta/relative_time_preview/link_with_tooltip.html.erb
Outdated
Show resolved
Hide resolved
…on the attribute being named 'title'
Keeping this in draft until the version of github/relative-time-element is bumped. Update: Opened #2882 to pull in the new version! |
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.
Some minor semantics around boolean usage ❤️
Co-authored-by: Joel Hawksley <joel@hawksley.org>
Co-authored-by: Joel Hawksley <joel@hawksley.org>
…4.1 (#2882) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: primer[bot] <119360173+primer[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Lindsey Wild <35239154+lindseywild@users.noreply.github.com> Co-authored-by: lindseywild <lindseywild@users.noreply.github.com> Co-authored-by: Jon Rohan <rohan@github.com> Co-authored-by: primer-css <primer-css@users.noreply.github.com>
Co-authored-by: Joel Hawksley <joel@hawksley.org>
Co-authored-by: Joel Hawksley <joel@hawksley.org>
Release / npm / Canary (push) failed; sounds like a temporary issue:
I’ll re-run the failed check. |
What are you trying to accomplish?
This is the Primer View Components version of primer/react#4635.
List the issues that this change affects.
Closes https://github.com/github/accessibility-audits/issues/5524
Risk Assessment
This API was deliberately chosen to avoid breaking any existing
RelativeTime
usage that might be relying on thetitle
attribute.What approach did you choose and why?
First, this PR updates the version of the
@github/relative-time-element
custom element fromv4.4.0
tov4.4.1
, which includesno-title
(via github/relative-time-element#283 and github/relative-time-element#284).Second, this PR adds
no_title
support to the Primer ViewComponentsRelativeTime
component.Third, this PR adds Lookbook stories to demonstrate the effects of
no_title
:title
attribute, so nothing happens on hover.Accessibility
Merge checklist
Take a look at the What we look for in reviews section of the contributing guidelines for more information on how we review PRs.