Repository navigation
fix(toc): wrap children in an <li> for screen readers controls - #232
Merged
Merged
Conversation
billhimmelsbach
marked this pull request as ready for review
July 21, 2021 22:28
billhimmelsbach
requested review from
rafegoldberg
and removed request for
rafegoldberg
July 21, 2021 22:28
billhimmelsbach
marked this pull request as draft
July 21, 2021 22:39
Contributor
Author
|
Converting back to draft since there's some changes that still need to be made to fix the styling. |
Contributor
Author
|
By adding a class to the children Which means now there's no difference in styling, while keeping the better structure for screen readers 🎉 |
billhimmelsbach
marked this pull request as ready for review
July 22, 2021 10:50
billhimmelsbach
requested review from
julshotal,
kevinports,
macuzi,
melodysifry and
runnabro
July 22, 2021 10:50
rafegoldberg
approved these changes
Jul 22, 2021
julshotal
approved these changes
Jul 22, 2021
Collaborator
This PR was released!🚀 Changes included in v6.30.1-next.3 |
rafegoldberg
pushed a commit
that referenced
this pull request
Jul 22, 2021
## Version 6.30.1 ### 🛠 Fixes & Updates * **heading:** add aria-label to anchors ([#230](#230)) ([1df0220](1df0220)) * **A11y:** making copy code button accessible ([#228](#228)) ([2d8d594](2d8d594)) * **toc:** wrap children in an <li> for screen readers controls ([#232](#232)) ([6e983a3](6e983a3)) <!--SKIP CI-->
Collaborator
This PR was released!🚀 Changes included in v6.30.1 |
This branch was previously deployed
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.


🧰 Changes
<li>to conform to the structure preferred for screen reader navigation@readmeio/readmerepo:https://github.com/readmeio/readme/pull/4831
🧬 QA & Testing
ulstructure?before
after
By adding a class to the children
li, we can be more specific with our css in the accompanying PR:https://github.com/readmeio/readme/pull/4831
Which means now there's no difference in styling, while keeping the better structure for screen readers 🎉

(screenshots are from local
@readme/readmebranch using these markdown changes. The local markdown playground still uses thee oldbundle-hub2.cssfor its CSS, so there's some diff there in the PR app, but won't be present on@readme/readme)