Skip to content

Commit 8535a51

Browse files
Merge pull request #2071 from EmmanuelDemey/master
Improve Accessibilty of the header
2 parents c79795d + 9dc21a7 commit 8535a51

File tree

3 files changed

+17
-6
lines changed

3 files changed

+17
-6
lines changed
Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
<div class="social-wrapper">
2-
<a href="https://twitter.com/nestframework" target="_blank">
2+
<a href="https://twitter.com/nestframework"
3+
title="Twitter account"
4+
target="_blank">
35
<i class="fab fa-twitter"></i>
46
</a>
5-
<a href="https://github.com/nestjs/nest" target="_blank">
7+
<a href="https://github.com/nestjs/nest"
8+
title="Github repository"
9+
target="_blank">
610
<i class="fab fa-github"></i>
711
</a>
8-
<a href="https://stackoverflow.com/questions/tagged/nestjs" target="_blank">
12+
<a href="https://stackoverflow.com/questions/tagged/nestjs"
13+
title="Stackoverflow"
14+
target="_blank">
915
<i class="fab fa-stack-overflow"></i>
1016
</a>
1117
<a
@@ -15,7 +21,10 @@
1521
>
1622
<i class="fa fa-globe"></i>
1723
</a>
18-
<a href="https://discord.gg/G7Qnnhy" target="_blank" rel="nofollow">
24+
<a href="https://discord.gg/G7Qnnhy"
25+
title="Discord"
26+
target="_blank"
27+
rel="nofollow">
1928
<i class="fab fa-discord"></i>
2029
</a>
2130
</div>

src/app/homepage/header/header.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<header>
2-
<div
2+
<button
33
class="icon-wrapper"
44
(click)="toggle.emit()"
55
[class.opened]="isSidebarOpened"
@@ -38,7 +38,7 @@
3838
/>
3939
</svg>
4040
</div>
41-
</div>
41+
</button>
4242
<ng-content></ng-content>
4343
<app-social-wrapper></app-social-wrapper>
4444
<div class="menu-wrapper">

src/app/homepage/header/header.component.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ header {
3030
display: inline-block;
3131
position: relative;
3232
z-index: 10000;
33+
border: none;
34+
background: transparent;
3335

3436
&:hover {
3537
cursor: pointer;

0 commit comments

Comments
 (0)