-
Notifications
You must be signed in to change notification settings - Fork 364
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
added caption role to table example #1484
Closed
Closed
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
b289221
added caption tolr to table example
jongund d14b5b4
update code to use APG coding practices
jongund e4ade28
updated code to APG coding standards
jongund eb65847
fixed bugs
jongund 1aa9171
removed files that should not be here
jongund de97036
restored files that should not have changed in this branch
jongund f9e26ee
removed file that should not be in this branch
jongund 62e3aed
restored orginal test file
jongund a71c2a0
updated regression test
jongund 2f9da0f
removed unused selector
jongund File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -42,7 +42,7 @@ <h2 id="ex_label">Example</h2> | |||||
<div role="separator" id="ex_start_sep" aria-labelledby="ex_start_sep ex_label" aria-label="Start of"></div> | ||||||
<div id="ex1"> | ||||||
<div role="table" aria-label="Students" aria-describedby="students_table_desc"> | ||||||
<div id="students_table_desc">Students currently enrolled in WAI-ARIA 101 for the coming semester</div> | ||||||
<div role="caption" id="students_table_desc">Students currently enrolled in WAI-ARIA 101 for the coming semester</div> | ||||||
<div role="rowgroup"> | ||||||
<div role="row"> | ||||||
<span role="columnheader">First Name</span> | ||||||
|
@@ -121,6 +121,12 @@ <h2 id="rps_label">Role, Property, State, and Tabindex Attributes</h2> | |||||
<td><code>div</code></td> | ||||||
<td>Refers to the element that serves as the caption for the table.</td> | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This table row would need to be removed if aria-describedby is not needed. |
||||||
</tr> | ||||||
<tr data-test-id="caption-role"> | ||||||
<th scope="row"><code>caption</code></th> | ||||||
<td></td> | ||||||
<td><code>div</code></td> | ||||||
<td>The element containing a description of the table contents.</td> | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Suggest wording consistent with other roles
Suggested change
|
||||||
</tr> | ||||||
<tr data-test-id="rowgroup-role"> | ||||||
<th scope="row"><code>rowgroup</code></th> | ||||||
<td></td> | ||||||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to our table naming guidance, the aria-describedby is superfluous on table elements if a caption is present. I assume this would be true if the the element is an ARIA caption as well.