Skip to content

Commit

Permalink
Merge pull request #225 from alphagov/add-tabindex-to-fix-skiplink
Browse files Browse the repository at this point in the history
Add `tabindex-1` to fix the skiplink in Safari
  • Loading branch information
aduggin committed May 25, 2016
2 parents f109c7a + a384ee4 commit 4cb1170
Show file tree
Hide file tree
Showing 20 changed files with 26 additions and 19 deletions.
7 changes: 7 additions & 0 deletions public/sass/elements-page.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@
// Elements page styles
// ==========================================================================

// Pressing enter when focus is on the skiplink sets focus on the #content area
// Remove the blue outline

#content {
outline: none;
}

// These are example styles, used only for the elements pages

.elements-index {
Expand Down
2 changes: 1 addition & 1 deletion views/examples/example_date.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{{$pageTitle}}Example: Date Form elements GOV.UK elements{{/pageTitle}}

{{$content}}
<main id="content" role="main">
<main id="content" role="main" tabindex="-1">

{{>breadcrumb}}

Expand Down
2 changes: 1 addition & 1 deletion views/examples/example_details_summary.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{{$pageTitle}}Example: Details summary Typography GOV.UK elements{{/pageTitle}}

{{$content}}
<main id="content" role="main">
<main id="content" role="main" tabindex="-1">

{{>breadcrumb}}

Expand Down
2 changes: 1 addition & 1 deletion views/examples/example_form_elements.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{{$pageTitle}}Example: Form elements Form elements GOV.UK elements{{/pageTitle}}

{{$content}}
<main id="content" role="main">
<main id="content" role="main" tabindex="-1">

{{>breadcrumb}}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{{$pageTitle}}Example: Form validation Errors GOV.UK elements{{/pageTitle}}

{{$content}}
<main class="js-error-example" id="content" role="main">
<main class="js-error-example" id="content" role="main" tabindex="-1">

{{>breadcrumb}}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{{$pageTitle}}Example: Form validation Errors GOV.UK elements{{/pageTitle}}

{{$content}}
<main class="js-error-example" id="content" role="main">
<main class="js-error-example" id="content" role="main" tabindex="-1">

{{>breadcrumb}}

Expand Down
2 changes: 1 addition & 1 deletion views/examples/example_grid_layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{{$pageTitle}}Example: Grid layout Layout GOV.UK elements{{/pageTitle}}

{{$content}}
<main id="content" role="main">
<main id="content" role="main" tabindex="-1">

{{>breadcrumb}}

Expand Down
2 changes: 1 addition & 1 deletion views/examples/example_icons.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{{$pageTitle}}Example: Icons Icons and images GOV.UK elements{{/pageTitle}}

{{$content}}
<main id="content" role="main">
<main id="content" role="main" tabindex="-1">

{{>breadcrumb}}

Expand Down
2 changes: 1 addition & 1 deletion views/examples/example_radios_checkboxes.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{{$pageTitle}}Example: Radio buttons and checkboxes Form elements GOV.UK elements{{/pageTitle}}

{{$content}}
<main id="content" role="main">
<main id="content" role="main" tabindex="-1">

{{>breadcrumb}}

Expand Down
2 changes: 1 addition & 1 deletion views/examples/example_typography.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{{$pageTitle}}Example: Typography Typography GOV.UK elements{{/pageTitle}}

{{$content}}
<main id="content" role="main">
<main id="content" role="main" tabindex="-1">

{{>breadcrumb}}

Expand Down
2 changes: 1 addition & 1 deletion views/guide_alpha_beta.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

{{$content}}

<main id="content" role="main">
<main id="content" role="main" tabindex="-1">

{{>phase_banner}}
{{>breadcrumb}}
Expand Down
2 changes: 1 addition & 1 deletion views/guide_buttons.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

{{$content}}

<main id="content" role="main">
<main id="content" role="main" tabindex="-1">

{{>phase_banner}}
{{>breadcrumb}}
Expand Down
2 changes: 1 addition & 1 deletion views/guide_colour.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

{{$content}}

<main id="content" role="main">
<main id="content" role="main" tabindex="-1">

{{>phase_banner}}
{{>breadcrumb}}
Expand Down
2 changes: 1 addition & 1 deletion views/guide_data.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

{{$content}}

<main id="content" role="main">
<main id="content" role="main" tabindex="-1">

{{>phase_banner}}
{{>breadcrumb}}
Expand Down
2 changes: 1 addition & 1 deletion views/guide_errors.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

{{$content}}

<main id="content" role="main">
<main id="content" role="main" tabindex="-1">

{{>phase_banner}}
{{>breadcrumb}}
Expand Down
2 changes: 1 addition & 1 deletion views/guide_form_elements.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

{{$content}}

<main id="content" role="main">
<main id="content" role="main" tabindex="-1">

{{>phase_banner}}
{{>breadcrumb}}
Expand Down
2 changes: 1 addition & 1 deletion views/guide_icons_images.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

{{$content}}

<main id="content" role="main">
<main id="content" role="main" tabindex="-1">

{{>phase_banner}}
{{>breadcrumb}}
Expand Down
2 changes: 1 addition & 1 deletion views/guide_layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

{{$content}}

<main id="content" role="main">
<main id="content" role="main" tabindex="-1">

{{>phase_banner}}
{{>breadcrumb}}
Expand Down
2 changes: 1 addition & 1 deletion views/guide_typography.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

{{$content}}

<main id="content" role="main">
<main id="content" role="main" tabindex="-1">

{{>phase_banner}}
{{>breadcrumb}}
Expand Down
2 changes: 1 addition & 1 deletion views/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

{{$content}}

<main class="elements-index" id="content" role="main">
<main class="elements-index" id="content" role="main" tabindex="-1">

{{>phase_banner}}
{{>breadcrumb}}
Expand Down

0 comments on commit 4cb1170

Please sign in to comment.