Skip to content

Commit 7e7a60f

Browse files
authored
Add "action" to the list of data attributes that accept multiple values (#3076)
1 parent 50fe6a5 commit 7e7a60f

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/lemon-kiwis-learn.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@primer/view-components": patch
3+
---
4+
5+
Add "action" to the list of data attributes that accept multiple values in the `merge_data` helper

app/lib/primer/attributes_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module Primer
44
# :nodoc:
55
module AttributesHelper
66
PLURAL_ARIA_ATTRIBUTES = %i[describedby labelledby].freeze
7-
PLURAL_DATA_ATTRIBUTES = %i[target targets].freeze
7+
PLURAL_DATA_ATTRIBUTES = %i[target targets action].freeze
88

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

0 commit comments

Comments
 (0)