Utilising semantic tags to provide better structure for screen readers#1464
Utilising semantic tags to provide better structure for screen readers#1464smallsaucepan wants to merge 3 commits intoMLTSHP:mainfrom
Conversation
…ontent in HTML to header, "content", aside, footer to provide better structure for screen readers. Subset of intended changes seeking feedback on approach.
There was a problem hiding this comment.
Heya! Just wanna say that overall I think this is a good change, and I'm happy to see it.
That said, you've made two changes at the same time that make this PR difficult to review — You've made simple markup changes (div to main, followers-list class, updating some profiles, etc), and you've reordered some markup (moving the main body content first, with the sidebar following). I like these both, but when they both happen in the same file, the diff becomes useless, because there's just one huge chunk of changes from the order change, and any other changes are hidden.
Can you tease these apart and make one PR with the order changes and another with the markup changes? I'm happy to approve them both, but for the PR where you're moving the code around, please don't make any other changes, so the review is simply "this block of code moved down the page"
… sidebar to end of file) to allow for easier diffing of this PR. Will re-apply in a subsequent PR.
|
Easy done. Have rolled back the reordering changes to be reapplied in a subsequent PR. |
There was a problem hiding this comment.
Thank you for breaking this apart, it was much easier to review.
This is looking good! A few nitpicks and then I'm happy to merge.
Also, could you add an UNRELEASED section to the top of the changelog file listing all the breaking markup changes that will need to be applied in the MLTSHP app? (Or you can do that in the followup PR, if that makes more sense, but it'll need to be done before we bump the version)
| <a class="btn btn-secondary btn-shadow" href="#">Newer »</a> | ||
| </div> | ||
| </div> | ||
| <nav class="linear-navigation" aria-label="Timeline"> |
There was a problem hiding this comment.
Why is this the only one with an aria-label?
There was a problem hiding this comment.
This was the most obvious one to me where a label would help. Not meant to be an exhaustive list though - just an example and conversation starter for this PR.
| } | ||
|
|
||
| > * { | ||
| min-width: 0; // https://github.com/philipwalton/flexbugs/issues/39 |
There was a problem hiding this comment.
Did you confirm that word-wrap works properly in flex containers in Firefox now?
There was a problem hiding this comment.
No, will probably have to add this back in. However existing selector was causing problems with restructured HTML as it is.
| <a class="older btn btn-secondary btn-shadow" href="#">« Older</a> | ||
| </nav> | ||
|
|
||
| <hr /> |
There was a problem hiding this comment.
Let's kill the HRs there, they're not adding any value on the style guide page (since the nav item itself has a top border already)
|
Have addressed the feedback as best I can for now. Should I proceed like so from here?
Suspect there will be things to tidy up after reordering, hence third PR. |
|
Sounds like a great plan! Ping me when you're ready for another review on this PR. 🎉 |
Overview
Utilising semantic tags (main, header, article, nav, etc) instead of divs and reordering content in HTML to header, "content", aside, footer to provide better structure for screen readers. Subset of intended changes seeking feedback on approach. Will make further commits based on feedback.
Screenshots
Only visual change should be to alignment of Older and Newer pagination buttons on mobile. They have been moved closer to edge of screen and should line up with edge of image content.
Testing
Have only done a subset of screens initially. Seeking feedback before converting them all. Main ones done are:
Pages should look and behave as they currently do, albeit with different behind the scenes markup.
Some design decisions worth noting: