Skip to content

Commit

Permalink
Merge pull request #887 from helsingborg-stad/feature/Dokumentation-f…
Browse files Browse the repository at this point in the history
…r-screen-readers--accessability-br-frbttras-sls-ihop-CU-3ymrg5f

feat: combined documentation for screen readers and accessibility
  • Loading branch information
NiclasNorin authored Mar 5, 2024
2 parents ac10869 + 36cd09e commit 7fc56f8
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 42 deletions.
12 changes: 6 additions & 6 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 30 additions & 0 deletions views/pages/utilities/accessability.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,35 @@
@endtypography
@endutility_doc

@markdown
#Screen readers
@endmarkdown
@utility_doc(['viewDoc' => ['type' => 'utility', 'root' => 'screen-readers', 'config' => 'screen-readers']])
<div class="u-color__bg--default u-rounded u-padding--2 u-margin__bottom--5">
@typography([
"element" => "h3",
"variant" => "h3",
"classList" => ["u-margin__top--2"]
])
This box contains a screen reader only text
@endtypography

<button class="u-sr__only">Screen reader only</button>
</div>

<div class="u-color__bg--default u-rounded u-padding--2">
@typography([
"element" => "h3",
"variant" => "h3",
"classList" => ["u-margin__top--2"]
])
This box contains a focusable screen reader only text
@endtypography

<button class="u-sr__only--focusable">Screen reader only</button>
</div>
@endutility_doc

</article>
@stop

36 changes: 0 additions & 36 deletions views/pages/utilities/screen-readers.blade.php

This file was deleted.

0 comments on commit 7fc56f8

Please sign in to comment.