Moved "learn more" link fragment spans to be above subject header #729
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.
This PR closes issue #650
I moved the
<span>
s that serve as targets of the two "learn more" links so that they are immediately above the headers of the sections they are related to. Visually, the linked-to headers are brought to the top of the Methodology page, and screen readers now announce the header, rather than the previous paragraph.Question for @bacitracin : I'm still using the
<span>
s so that the screen reader reads the text of the header and then stops. I could delete the<span>
s and instead addid=...
to the<div>
containing the header and paragraph text, which was suggested as a possible alternative solution to this issue. I tested it and the navigation works the same either way. However, if I add theid
to the<div>
, the screen reader reads the header and also reads the first paragraph. What is the preferred behavior?Also, for reference, here are some before-and-after screenshots of the "access method" section of the Methodology page as it appears after clicking the "learn more" link:
Before this PR on a large screen:
After this PR on a large screen:
Before this PR on a small screen:
After this PR on a small screen: