Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions app/components/primer/beta/relative_time.rb
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ class RelativeTime < Primer::Component
# @param lang [String] The language to use.
# @param title [String] Provide a custom title to the element.
# @param no_title [Boolean] Removes the `title` attribute provided on the element by default.
# @param aria_hidden [Boolean] Set if the element is hidden or not.
# @param system_arguments [Hash] <%= link_to_system_arguments_docs %>
def initialize(
datetime:,
Expand All @@ -122,6 +123,7 @@ def initialize(
lang: nil,
title: nil,
no_title: false,
aria_hidden: nil,
**system_arguments
)
@system_arguments = deny_tag_argument(**system_arguments)
Expand All @@ -143,6 +145,7 @@ def initialize(
@system_arguments[:lang] = lang if lang.present?
@system_arguments[:format] = fetch_or_fallback(FORMAT_OPTIONS, format, FORMAT_DEFAULT) if format.present?
@system_arguments[:"format-style"] = format_style if format_style.present?
@system_arguments[:"aria-hidden"] = aria_hidden if aria_hidden.present?
if datetime.present? && datetime.respond_to?(:iso8601)
@datetime = datetime
@system_arguments[:datetime] = datetime.iso8601
Expand Down
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.