Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

Commit

Permalink
Add roles and aria-labels to top+related stories.
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinsina committed May 18, 2022
1 parent adea2f4 commit 3021f21
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ $ const blockName = "related-stories";
>
$ nodes.push(...related);
<if(nodes.length)>
<marko-web-block name=blockName>
<marko-web-block name=blockName attrs={ role: "region", "aria-label": "Related Stories" }>
<marko-web-element block-name=blockName name="header">
${title}
</marko-web-element>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ $ const queryName = (queryParams.optionName) ? "website-optioned-content" : "web
};
$ const cardNodes = nodes.slice(1);

<marko-web-block name=blockName>
<marko-web-block name=blockName attrs={ role: "region", "aria-label": "Top Stories" }>
<if(withHeader)>
<marko-web-element block-name=blockName name="header">
${i18n("Top Stories")}
Expand Down

0 comments on commit 3021f21

Please sign in to comment.