Skip to content

Commit

Permalink
fix: footer headings hierarchy (fixes #114)
Browse files Browse the repository at this point in the history
  • Loading branch information
sinedied committed May 15, 2024
1 parent 6a99163 commit 93d1d4a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import { updateTrackingCodes } from '../loader';
template: `
<footer [class]="type">
<ng-container *ngIf="type === 'big'; else defaultFooter">
<h2 class="visually-hidden">Footer</h2>
<div class="container no-sidebar split-layout">
<div class="image">
<img src="images/bit/student.png" alt="students" />
Expand Down
1 change: 1 addition & 0 deletions packages/website/src/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,4 @@
@import 'theme/layout';
@import 'theme/responsive';
@import 'theme/code';
@import 'theme/accessibility';
12 changes: 12 additions & 0 deletions packages/website/src/theme/_accessibility.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
@import 'variables';

// Accessibility helpers -----------------------------------------------------

.visually-hidden {
display: block;
height: 0;
overflow: hidden;
margin: 0;
border: 0;
padding: 0;
}

0 comments on commit 93d1d4a

Please sign in to comment.