-
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
Deprecated Primer::LocalTime
in favor of Primer::Beta::RelativeTime
#1687
Conversation
…omponent, fix inconsistencies in preview files, and adjust css imports
🦋 Changeset detectedLatest commit: 8e5153a 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 |
* [Deprecated `Primer::LocalTime`](https://primer.style/view-components/components/localtime) | ||
* [`Primer::Beta::RelativeTime` component](https://primer.style/view-components/components/beta/relativetime) | ||
* [`Primer::Beta::RelativeTime` Lookbook examples](https://primer.style/view-components/lookbook/inspect/primer/beta/relativetime/default) | ||
|
||
<p> </p> | ||
|
||
[← Back to migration guides](https://primer.style/view-components/migration) |
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 ran into a styling issue here, with the bullet list and the following link being right up against each other. the backing css for the <ul>
with the bullet list doesn't have any padding or margin at the bottom of it, and it ends up looking like this:
the hard coded p tag and nonbreaking space are here as a workaround until the styling can be fixed
Co-authored-by: Jon Rohan <[email protected]>
… into mxriverlynn/deprecate-localtime
@@ -101,7 +101,7 @@ class RelativeTime < Primer::Component | |||
# @param month [Symbol] What format months should take. <%= one_of(Primer::Beta::RelativeTime::MONTH_OPTIONS) %> | |||
# @param year [Symbol] What format years should take. <%= one_of(Primer::Beta::RelativeTime::YEAR_OPTIONS) %> | |||
# @param time_zone_name [Symbol] What format the time zone should take. <%= one_of(Primer::Beta::RelativeTime::TIMEZONENAME_OPTIONS) %> | |||
# @param threshold [string] The threshold at which relative time displays become absolute. | |||
# @param threshold [string] The threshold, in ISO-8601 'durations' format, at which relative time displays become absolute. |
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.
Nice!
Co-authored-by: Keith Cirkel <[email protected]>
Co-authored-by: Keith Cirkel <[email protected]>
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 small docs changes but otherwise 👍
Description
deprecates
Primer::LocalTime
in favor ofPrimer::RelativeTime
, and provides an upgrade guide for the changes. it also adds a note about thethreshold
argument being an ISO-8601 "duration" in relevant locations, for theRelativeTime
componentscreenshot of guides page, w/ new guide link:
screenshot of basic migration example, in guide:
screenshot of arguments in guide:
Integration
no immediate changes needed, but deprecations need to be cleaned up
Merge checklist