Skip to content

Commit

Permalink
Small formatting changes to Tag documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
ronijaakkola committed Nov 4, 2020
1 parent 97a9c33 commit b582c46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site/docs/components/tag.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import Link from "../../src/components/Link";

### Which role attribute should be used with Tags?
- HDS Tags can be clickable. In this case, it needs either a `role=“link”` or `role=“button”` as an attribute. The role value should be decided as follows:
- If the user’s focus is moved to another location or another page is opened, the role should be link. Example: The user clicks a Tag labeled as "News". The tag takes the user to a new page which lists all items tagged as "News".
- If the user’s focus is moved to another location or another page is opened, the role should be `link`. Example: The user clicks a Tag labeled as "News". The tag takes the user to a new page which lists all items tagged as "News".
- If, however, the tag will result in the page’s content being dynamically changed (i.e. Tag triggers an action), use `role=“button”`. Example: Clicking the tag will cause a search below to be filtered.

## Usage and variations
Expand Down

0 comments on commit b582c46

Please sign in to comment.