Skip to content

Commit 229e2f8

Browse files
Bump @github/relative-time-element from 4.4.5 to 4.4.8 in the production-dependencies group (#3485)
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jon Rohan <rohan@github.com>
1 parent 00ce4e6 commit 229e2f8

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

app/components/primer/beta/relative_time.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ class RelativeTime < Primer::Component
102102
# @param lang [String] The language to use.
103103
# @param title [String] Provide a custom title to the element.
104104
# @param no_title [Boolean] Removes the `title` attribute provided on the element by default.
105+
# @param aria_hidden [Boolean] Set if the element is hidden or not.
105106
# @param system_arguments [Hash] <%= link_to_system_arguments_docs %>
106107
def initialize(
107108
datetime:,
@@ -122,6 +123,7 @@ def initialize(
122123
lang: nil,
123124
title: nil,
124125
no_title: false,
126+
aria_hidden: nil,
125127
**system_arguments
126128
)
127129
@system_arguments = deny_tag_argument(**system_arguments)
@@ -143,6 +145,7 @@ def initialize(
143145
@system_arguments[:lang] = lang if lang.present?
144146
@system_arguments[:format] = fetch_or_fallback(FORMAT_OPTIONS, format, FORMAT_DEFAULT) if format.present?
145147
@system_arguments[:"format-style"] = format_style if format_style.present?
148+
@system_arguments[:"aria-hidden"] = aria_hidden if aria_hidden.present?
146149
if datetime.present? && datetime.respond_to?(:iso8601)
147150
@datetime = datetime
148151
@system_arguments[:datetime] = datetime.iso8601

package-lock.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)