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

updated disclosure examples to restore use of DL/DT/DD and use button element #282

Merged
merged 5 commits into from
Feb 14, 2017
Merged

updated disclosure examples to restore use of DL/DT/DD and use button element #282

merged 5 commits into from
Feb 14, 2017

Conversation

jongund
Copy link
Contributor

@jongund jongund commented Feb 13, 2017

updated example to:

  1. Use images instead of entities for visual state information
  2. Removed the use of DL/DT/DD elements in FAQ example

…formation and removed the use of DL/DT/DD elements in FAQ example
@jongund jongund changed the title updated example to use images for state and removed DL/DT/DD elements updated disclose examples to use images for state and removed DL/DT/DD elements Feb 13, 2017
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.

Undo change on line 229 of html file; it breaks html source code display.

Changing to div from dt and dd is not better; it removes semantics. I don't think we agreed to do that during the meeting on Monday.

A preferable change is to put buttons inside dt and expandable sections inside dd. Then, the list structure is visible and useful. It is a list of questions, so a list structure is appropriate. And, each element in the list has two parts that map well to dt and dd so the dl is an appropriate type of list.

@@ -226,7 +226,7 @@ <h2 id="sc1_label">HTML Source Code</h2>
aria-label="End of"
></div>
<script>
sourceCode.add('sc1', 'ex1');
sourceCode.adiv('sc1', 'ex1');
Copy link
Contributor

Choose a reason for hiding this comment

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

Why this change? It breaks display of source code.

@mcking65 mcking65 changed the title updated disclose examples to use images for state and removed DL/DT/DD elements updated disclosure examples to use images for state Feb 14, 2017
@mcking65 mcking65 mentioned this pull request Feb 14, 2017
3 tasks
@jongund jongund changed the title updated disclosure examples to use images for state updated disclosure examples to restore use of DL/DT/DD and use button element Feb 14, 2017
modified:   examples/disclosure/disclosure-faq.html:
* Moved answers inside of a `p` element inside of the `dd` element.
* Fixed call to method for displaying html source.
* Editorial revisions.
modified examples/disclosure/disclosure-faq.html:
* Revised title and H1 to include the word "Example".

modified examples/disclosure/disclosure-img-long-description.html:
* Revised title and H1 to include the word "Example".
* Change heading inside of example to H3
* Fix typos
* Editorial revision to wording of accessibility features for clarity.
@mcking65
Copy link
Contributor

@jongund, thank you.

I made a few more changes and pushed them to this branch.

I put the answers to the questions in the FAQ inside of p elements that are contained by the dd elements so that the dl is always well-formed, even if the answers are all hidden.

I made some editorial revisions and corrections.

I'll merge into master. Please have a look.

@mcking65 mcking65 merged commit 9009bf5 into w3c:master Feb 14, 2017
@jongund
Copy link
Contributor Author

jongund commented Feb 15, 2017 via email

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

Successfully merging this pull request may close these issues.

2 participants