Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add comment ARIA #56

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Add comment ARIA #56

wants to merge 6 commits into from

Conversation

simin4950
Copy link
Contributor

What Changed

Added Comment ARIA

Why

Added for #50
Allowing developers to add an ARIA role for comments in their application.

Todo:

  • Add Semantic Version Label
  • Add tests/Tested on local machine
  • Add docs

README.md Outdated Show resolved Hide resolved
],
"body": [
"role='comment'",
"aria-details={$1}"
Copy link
Collaborator

Choose a reason for hiding this comment

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

this parts tough because the aria-details actually should be located on role="mark"

<span role="mark" aria-details="thread-1">end of the guitar solo</span>, before fading away sharply.</p>

<div role="comment" id="thread-1" data-author="chris">
  <h3>Chris said</h3>
  <p class="comment-text">I really think this moment could use more cowbell.</p>
  <p><time datetime="2019-03-30T19:29">March 30 2019, 19:29</time></p>
</div>

Copy link
Collaborator

Choose a reason for hiding this comment

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

what we end up wanting is an id={} paired with role comment
and a description explaining that when you use role=comment you also should use role=mark

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated the changes! Let me know what you think!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants