Fix 2746: Add 'skip to content' styles #260
Merged
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.
Description of Issue
Screen readers tend to announce all of the links on the page to the user, in order to help with accessibility to bypass parts of each page, for example, navigation links in the mode-bar, filter-bar in the toolbar and get to main content, skip to content is needed.
Skip to content styles provides help with the positioning of the skip to content link, adding visibility, font properties, border properties.
Proposed Solution
Skip to content styles is implemented in the upper left corner that says “Skip to Content.”, It is hidden and then brings into view when it is focused or active. It's the first thing that appears after the page is being loaded and tabbed on, it skips to the first postcard which is the most important of the page on the data view. it is only visible when tabbed on importantly for screen-readers only and hiding the skip-to-content link to everybody else.
Testing
The testing was done manually by tabbing on the page which in turn activates the skip to content button as shown in the screenshot section below. The gulp test command was run to make sure no test is broken/affected by the changes.
Testing checklist
Post views
Screenshots
Fixes ushahidi/platform#2746
Ping @ushahidi/platform @Angamanga @rowasc