Skip to content

Commit 54462e2

Browse files
feat: added role="radio" and name="article-votes-option" attribute to article_page template
1 parent 5b7de1c commit 54462e2

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.tool-versions

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nodejs 22.15.1

templates/article_page.hbs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,9 @@
153153
{{#with article}}
154154
<div class="article-votes">
155155
<h2 class="article-votes-question" id="article-votes-label">{{t 'was_this_article_helpful'}}</h2>
156-
<div class="article-votes-controls" role="group" aria-labelledby="article-votes-label">
157-
{{vote 'up' class='button article-vote article-vote-up' selected_class="button-primary"}}
158-
{{vote 'down' class='button article-vote article-vote-down' selected_class="button-primary"}}
156+
<div class="article-votes-controls" role="radiogroup" aria-labelledby="article-votes-label">
157+
{{vote 'up' class='button article-vote article-vote-up' selected_class="button-primary" role="radio" name="article-votes-option"}}
158+
{{vote 'down' class='button article-vote article-vote-down' selected_class="button-primary" role="radio" name="article-votes-option"}}
159159
</div>
160160
<small class="article-votes-count">
161161
{{vote 'label' class='article-vote-label'}}

0 commit comments

Comments
 (0)