Module: GovukPublishingComponents::SharedAccessibilityCriteria

Defined in:
app/models/govuk_publishing_components/shared_accessibility_criteria.rb

Class Method Summary collapse

Class Method Details

.buttonObject



20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# File 'app/models/govuk_publishing_components/shared_accessibility_criteria.rb', line 20

def self.button
  "
Buttons in the component must:

- accept focus
- be focusable with a keyboard
- be usable with a keyboard
- indicate when they have focus
- change in appearance when touched (in the touch-down state)
- change in appearance when hovered
- be usable with touch
- be usable with [voice commands](https://www.w3.org/WAI/perspectives/voice.html)
- have visible text
- have meaningful text
  "
end


3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'app/models/govuk_publishing_components/shared_accessibility_criteria.rb', line 3

def self.link
  "
Links in the component must:

- accept focus
- be focusable with a keyboard
- be usable with a keyboard
- indicate when they have focus
- change in appearance when touched (in the touch-down state)
- change in appearance when hovered
- be usable with touch
- be usable with [voice commands](https://www.w3.org/WAI/perspectives/voice.html)
- have visible text
- have meaningful text
  "
end