Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions docs/rules/accessibility/no-title-attribute-counter.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,14 @@ Use a `<title>` element instead of the `title` attribute, or an `aria-label`.
### **Correct** code for this rule 👍

```erb
<a href="github.com" aria-describedby="description">GitHub</a>
<p id="description" class="tooltip js-tooltip">A home for all developers</p>
<a href="github.com">GitHub</a>
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I swapped the example order

```

**For [Primer ViewComponent](https://primer.style/view-components/) consumers only**:

```erb
<a href="github.com">GitHub</a>
<%= render(Primer::LinkComponent.new(href: "github.com", id: "link-with-tooltip")) do |c| %>
<% c.tooltip(text: "A home for all developers") %>
GitHub
<% end %>
```