Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Render accessibility acceptance criteria for components #414

Merged
merged 2 commits into from Jul 27, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion Gemfile
Expand Up @@ -41,7 +41,7 @@ group :development, :test do
gem 'govuk-lint'
gem 'pry-byebug'
gem 'jasmine-rails', '~> 0.14.0'
gem 'govuk_publishing_components', '~> 0.2.0'
gem 'govuk_publishing_components', '~> 0.3.0'
end

group :development do
Expand Down
23 changes: 21 additions & 2 deletions Gemfile.lock
Expand Up @@ -68,6 +68,8 @@ GEM
xpath (~> 2.0)
cliver (0.3.2)
coderay (1.1.1)
commander (4.4.3)
highline (~> 1.7.2)
concurrent-ruby (1.0.2)
crack (0.4.3)
safe_yaml (~> 1.0.0)
Expand All @@ -86,6 +88,16 @@ GEM
rest-client (~> 2.0)
globalid (0.3.7)
activesupport (>= 4.1.0)
govspeak (5.0.3)
actionview (>= 4.1, < 6)
addressable (>= 2.3.8, < 3)
commander (~> 4.4)
htmlentities (~> 4)
i18n (~> 0.7)
kramdown (~> 1.12.0)
money (~> 6.7)
nokogiri (~> 1.5)
sanitize (~> 2.1.0)
govuk-lint (1.2.1)
rubocop (~> 0.39.0)
scss_lint
Expand All @@ -99,13 +111,15 @@ GEM
sass (>= 3.2.0)
govuk_navigation_helpers (6.3.0)
gds-api-adapters (>= 43.0)
govuk_publishing_components (0.2.0)
govuk_publishing_components (0.3.0)
govspeak (~> 5.0.3)
govuk_frontend_toolkit
rails (~> 5.0.0, >= 5.0.0.1)
sass-rails (~> 5.0.4)
slimmer (~> 10.1.3)
govuk_schemas (2.1.0)
json-schema (~> 2.5.0)
highline (1.7.8)
htmlentities (4.3.4)
http-cookie (1.0.3)
domain_name (~> 0.5)
Expand All @@ -121,6 +135,7 @@ GEM
json-schema (2.5.2)
addressable (~> 2.3.8)
kgio (2.10.0)
kramdown (1.12.0)
link_header (0.0.8)
log4r (1.1.10)
logstash-event (1.1.5)
Expand All @@ -142,6 +157,8 @@ GEM
minitest (5.9.0)
mocha (1.1.0)
metaclass (~> 0.0.1)
money (6.9.0)
i18n (>= 0.6.4, < 0.9)
netrc (0.11.0)
nio4r (1.2.1)
nokogiri (1.6.8)
Expand Down Expand Up @@ -222,6 +239,8 @@ GEM
unicode-display_width (~> 1.0, >= 1.0.1)
ruby-progressbar (1.8.1)
safe_yaml (1.0.4)
sanitize (2.1.0)
nokogiri (>= 1.4.4)
sass (3.4.22)
sass-rails (5.0.6)
railties (>= 4.0.0, < 6)
Expand Down Expand Up @@ -299,7 +318,7 @@ DEPENDENCIES
govuk_elements_rails (= 3.0.1)
govuk_frontend_toolkit (= 5.1.0)
govuk_navigation_helpers (~> 6.3)
govuk_publishing_components (~> 0.2.0)
govuk_publishing_components (~> 0.3.0)
govuk_schemas
htmlentities (= 4.3.4)
jasmine-rails (~> 0.14.0)
Expand Down
3 changes: 3 additions & 0 deletions app/views/components/docs/download-link.yml
Expand Up @@ -2,11 +2,14 @@ name: Download link
description: A link with a file download icon
accessibility_criteria: |
The download link must:

- accept focus
- be focusable with a keyboard
- be usable with a keyboard
- indicate when it has focus

The download icon must:

- be presentational and ignored by screen readers
fixtures:
default:
Expand Down
3 changes: 2 additions & 1 deletion app/views/components/docs/lead-paragraph.yml
@@ -1,7 +1,8 @@
name: Lead paragraph
description: A paragraph of text
description: The opening paragraph of content. Typically a content item’s description field.
accessibility_criteria: |
The lead paragraph must:

- be visually distinct from other paragraphs
fixtures:
default:
Expand Down
3 changes: 3 additions & 0 deletions app/views/components/docs/print-link.yml
Expand Up @@ -2,11 +2,14 @@ name: Print link
description: A link with a print icon
accessibility_criteria: |
The print link must:

- accept focus
- be focusable with a keyboard
- be usable with a keyboard
- indicate when it has focus

The print icon must:

- be presentational and ignored by screen readers
fixtures:
default:
Expand Down