Skip to content

Commit

Permalink
Add "action" to the list of data attributes that accept multiple valu…
Browse files Browse the repository at this point in the history
…es (#3076)
  • Loading branch information
HDinger authored Oct 11, 2024
1 parent 50fe6a5 commit 7e7a60f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/lemon-kiwis-learn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/view-components": patch
---

Add "action" to the list of data attributes that accept multiple values in the `merge_data` helper
2 changes: 1 addition & 1 deletion app/lib/primer/attributes_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module Primer
# :nodoc:
module AttributesHelper
PLURAL_ARIA_ATTRIBUTES = %i[describedby labelledby].freeze
PLURAL_DATA_ATTRIBUTES = %i[target targets].freeze
PLURAL_DATA_ATTRIBUTES = %i[target targets action].freeze

def aria(val, system_arguments)
system_arguments[:"aria-#{val}"] || system_arguments.dig(:aria, val.to_sym)
Expand Down

0 comments on commit 7e7a60f

Please sign in to comment.