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

Treegrid example: Update to use APG Example template for documentation #710

Merged
merged 11 commits into from
Jun 18, 2018
Merged

Treegrid example: Update to use APG Example template for documentation #710

merged 11 commits into from
Jun 18, 2018

Conversation

jongund
Copy link
Contributor

@jongund jongund commented Jun 8, 2018

No description provided.

@mcking65 mcking65 self-assigned this Jun 11, 2018
Copy link
Contributor

@mcking65 mcking65 left a comment

Choose a reason for hiding this comment

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

Thank you @jongund. This is good progress. I noted some things to address in the html file.

BTW, you can assume the ID of the pattern in aria-practices.html will be "treegrid".

<p>
This same example can be used in three ways.
</p>
<ul>
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure we want to eliminate these operating modes; topic of discussion. We could make them three different example pages, but I am not sure that is the best approach in this case.

<li>aria-multiselectable and aria-selected: used on row in the case of a multiselectable treegrid where each row begins with a checkbox. Must be set to false or true so that it is clear that row is selectable. Unfortunately some screen readers will read "selected" for each row even in the single selection case.</li>
<li>aria-labelledby or aria-describedby for headers? Not currently used, awaiting discussion. Some UA + screen reader combinations seem to be determining this automatically via the table structure.</li>
<li>aria-readonly: in ARIA 1.0, a grid/treegrid is editable by default. However, there is no default in ARIA 1.1. Firefox currently implements the ARIA 1.0 concept for this, which means that "editable" is read for every cell unless aria-readonly="true" is used on the treegrid. <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=1359482">A bug has been filed in Mozilla to not propagate the readonly/editable state to descendant gridcells unless it is specified via aria-readonly</a>.</li>
<li>This example uses the roving tabindex technqiue to manage the tabbing into and our of the treegrid and tabindex values are managed through javascript.</li>
Copy link
Contributor

Choose a reason for hiding this comment

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

Change "technqiue " to "technique". There are lots more spelling errors. Please check for spelling.
Some examples include: adddress, thetreegrid, girdcell, indictes, avaiable, aria-poinset

</li>
<li>
Javascript:
<a href="js/treegrid-1.js" type="text/javascript">example_name.js</a>
<a href="js/treegrid-1.js" type="text/javascript">treegrid-1.js</a>
</li>
</ul>
</section>
Copy link
Contributor

Choose a reason for hiding this comment

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

There's a link at the end of the file back to the pattern than needs to be updated. Github doesn't let me comment on that line.

@@ -83,18 +77,8 @@ <h1>Treegrid Email Inbox Example</h1>
The following example demonstrates how the
Copy link
Contributor

Choose a reason for hiding this comment

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

On line 36 of Example-Template.html there is a set of four links in a nav region that are missing from this page.

@jongund
Copy link
Contributor Author

jongund commented Jun 11, 2018 via email

Copy link
Contributor

@mcking65 mcking65 left a comment

Choose a reason for hiding this comment

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

Thank you Jon. Here's another more thorough set of changes and recommendations.

<ul>
<li><a href="../../#browser_and_AT_support">Browser and Assistive Technology Support</a></li>
<li><a href="https://github.com/w3c/aria-practices/issues/new">Report Issue</a></li>
<li><a href="project_url">Related Issues</a></li>
Copy link
Contributor

Choose a reason for hiding this comment

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

<main>
<h1>Treegrid Email Inbox Example</h1>
<p>
Copy link
Contributor

Choose a reason for hiding this comment

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

We need to keep this paragraph

Development of this example is tracked by
<a href="https://github.com/w3c/aria-practices/issues/132">issue 132.</a>
</p>
<p>
Copy link
Contributor

Choose a reason for hiding this comment

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

We need to keep this paragraph as welll

can be used to make an interactive tree that enables users to navigate the hierarchical structure of email conversations
and also provides the ability to navigate to elements that describe each email, such as subject and sender.
</p>
<p>
Copy link
Contributor

Choose a reason for hiding this comment

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

And, please restore this paragraph and the subsequent list of links until we have had a discussion about in a meeting.

@@ -107,7 +87,7 @@ <h2 id="ex_label">Example</h2>
The div for the rendered HTML source is in the last section of the page.
-->
<div id="ex1">
<table id="treegrid" role="treegrid" aria-label="ARIA treegrid example">
<table id="treegrid" role="treegrid" aria-readonly="true" aria-label="ARIA treegrid example">
Copy link
Contributor

Choose a reason for hiding this comment

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

We should not be adding aria-readonly. It is not appropriate for this example. That's part of what we changed in the grid role for ARIA 1.1. The guidance for aria-readonly needs to be deleted from the states and properties table as well; it is not correct.

Also, I just noticed the aria-label ... I think we should change it to "Inbox".

<td><code>tr</code></td>
<td>
<ul>
<li><code>aria-hidden</code> is used to control the information available to assisitve technologies.</li>
Copy link
Contributor

Choose a reason for hiding this comment

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

Spelling error: assisitve

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

<th scope="row"><code>aria-level=<q><em>number</em></q></code></th>
<td><code>tr</code></td>
<td>
<ul>
Copy link
Contributor

Choose a reason for hiding this comment

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

For simplicity and clarity, I recommend replacing the bullets in this list with the following to be consistent with the wording we use in the tree examples:

  • Defines the level of the row in the hierarchical treegrid structure.
  • Counting is one-based.
  • Root rows have aria-level=“1”.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Made the change

<th scope="row"><code>aria-setsize=<q><em>number</em></q></code></th>
<td><code>tr</code></td>
<td>
Identifies the number of message rows that responded to the parent e-mail message.
Copy link
Contributor

Choose a reason for hiding this comment

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

Recommend the following wording to be consistent with the tree examples:

Defines the number of rows in the set of rows that are in the same branch and at the same level within the hierarchy.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Made the change

Copy link
Contributor

Choose a reason for hiding this comment

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

hmm... still looks the same to me.

<th scope="row"><code>aria-posinset=<q><em>number</em></q></code></th>
<td><code>tr</code></td>
<td>
Identifies the index of message row in the current set of message rows that responded to the parent e-mail message.
Copy link
Contributor

Choose a reason for hiding this comment

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

I recommend the following wording to be consistent with the tree examples:

  • Defines the position of the row within the set of other rows that are in the same branch and at the same level within the hierarchy.
  • Counting is one-based, not zero-based.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Made the change

<td>
<ul>
<li>Makes the <code>gridcell</code> element focusable without including it in the tab sequence of the page.</li>
<li>All <code>row</code> and <code>girdcell</code> elements are focusable, but only one is included in the tab sequence.</li>
Copy link
Contributor

Choose a reason for hiding this comment

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

spelling error: girdcell

Copy link
Contributor Author

Choose a reason for hiding this comment

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

FIxed

@mcking65 mcking65 changed the title Treegrid example ready for review Treegrid example: Update to use APG Example template for documentation Jun 12, 2018
@jongund
Copy link
Contributor Author

jongund commented Jun 13, 2018

Added back in the deleted content

Copy link
Contributor

@mcking65 mcking65 left a comment

Choose a reason for hiding this comment

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

@jongund, I do not see changes for comments I made on:

  • line 73 about correct url
  • line 113, I suggested changing aria-label to "inbox"
  • line 452 I provided wording for aria-expanded that is consistent with tree
  • line 464 I provided wording for aria-expanded that is consistent with tree
  • line 512 about aria-setsize
  • The content that you had previously deleted under accessibility features can stay deleted. The list of 4 items you had on line 192 in this version of the file was sufficient.

<th scope="row"><code>aria-setsize=<q><em>number</em></q></code></th>
<td><code>tr</code></td>
<td>
Identifies the number of message rows that responded to the parent e-mail message.
Copy link
Contributor

Choose a reason for hiding this comment

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

hmm... still looks the same to me.

@jongund
Copy link
Contributor Author

jongund commented Jun 14, 2018

Matt,

I think I have fixed all the problems you have identified

@mcking65 mcking65 merged commit 8d56a9a into w3c:treegrid Jun 18, 2018
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