Skip to content

Commit bb50b9b

Browse files
authored
Accessibility update footer items (#119)
1 parent 331a454 commit bb50b9b

3 files changed

Lines changed: 14 additions & 6 deletions

File tree

src/Template/Element/Layout/default/footer/login_form.ctp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,20 +42,20 @@
4242
<?= $this->Html->link(
4343
$this->Html->image('open-hub.svg'),
4444
'https://www.openhub.net/p/cakephp',
45-
['escape' => false, 'target' => '_blank', 'style' => 'opacity: .5']
45+
['escape' => false, 'target' => '_blank', 'style' => 'opacity: .5', 'aria-label' => 'openHub', 'alt' => 'openHub']
4646
) ?>
4747
<div class="mt10">
4848
<?= $this->Html->link(
4949
$this->Html->image('pingping.png'),
5050
'https://pingping.io',
51-
['escape' => false, 'target' => '_blank']
51+
['escape' => false, 'target' => '_blank', 'aria-label' => 'pingping.io', 'alt' => 'pingping.io']
5252
) ?>
5353
</div>
5454
<div class="mt10">
5555
<?= $this->Html->link(
5656
$this->Html->image('linode.png'),
5757
'https://www.linode.com/',
58-
['escape' => false, 'target' => '_blank']
58+
['escape' => false, 'target' => '_blank', 'aria-label' => 'Linode', 'alt' => 'Linode']
5959
) ?>
6060
</div>
6161
</div>

src/Template/Element/Layout/default/footer/social_interactions.ctp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
</div>
1818

1919
<div class="col-sm-3 col-xs-6">
20-
<iframe src="https://ghbtns.com/github-btn.html?user=cakephp&amp;repo=cakephp&amp;type=star&amp;count=true&amp;size=small"></iframe>
20+
<iframe title="github star count" src="https://ghbtns.com/github-btn.html?user=cakephp&amp;repo=cakephp&amp;type=star&amp;count=true&amp;size=small"></iframe>
2121
</div>
2222

2323
<div class="col-sm-3 col-xs-6">
24-
<iframe src="https://ghbtns.com/github-btn.html?user=cakephp&amp;repo=cakephp&amp;type=fork&amp;count=true&amp;size=small"></iframe>
24+
<iframe title="github fork count" src="https://ghbtns.com/github-btn.html?user=cakephp&amp;repo=cakephp&amp;type=fork&amp;count=true&amp;size=small"></iframe>
2525
</div>

src/Template/Element/Layout/default/footer/social_links.ctp

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
'target' => '_blank',
66
'title' => 'Twitter',
77
'data-toggle' => 'tooltip',
8+
'aria-label' => 'Twitter',
89
'escape' => false
910
]
1011
); ?>
@@ -15,6 +16,7 @@
1516
'target' => '_blank',
1617
'title' => 'Facebook',
1718
'data-toggle' => 'tooltip',
19+
'aria-label' => 'Facebook',
1820
'escape' => false
1921
]
2022
); ?>
@@ -25,6 +27,7 @@
2527
'target' => '_blank',
2628
'title' => 'Youtube',
2729
'data-toggle' => 'tooltip',
30+
'aria-label' => 'Youtube',
2831
'escape' => false
2932
]
3033
); ?>
@@ -35,6 +38,7 @@
3538
'target' => '_blank',
3639
'title' => 'Linkedin',
3740
'data-toggle' => 'tooltip',
41+
'aria-label' => 'Linkedin',
3842
'escape' => false
3943
]
4044
); ?>
@@ -45,6 +49,7 @@
4549
'target' => '_blank',
4650
'title' => 'Github',
4751
'data-toggle' => 'tooltip',
52+
'aria-label' => 'Github',
4853
'escape' => false
4954
]
5055
); ?>
@@ -55,6 +60,7 @@
5560
'target' => '_blank',
5661
'title' => 'Slack',
5762
'data-toggle' => 'tooltip',
63+
'aria-label' => 'Slack',
5864
'escape' => false
5965
]
6066
); ?>
@@ -65,6 +71,7 @@
6571
'target' => '_blank',
6672
'title' => 'Stack Overflow',
6773
'data-toggle' => 'tooltip',
74+
'aria-label' => 'Stack Overflow',
6875
'escape' => false
6976
]
7077
); ?>
@@ -75,6 +82,7 @@
7582
'target' => '_blank',
7683
'title' => 'IRC',
7784
'class' => 'icon-irc',
78-
'data-toggle' => 'tooltip'
85+
'data-toggle' => 'tooltip',
86+
'aria-label' => 'IRC'
7987
]
8088
) ?>

0 commit comments

Comments
 (0)