Skip to content

Commit

Permalink
Merge branch 'updates/7265-anchor-tags-accessibility' of github.com:t…
Browse files Browse the repository at this point in the history
…orchbox/rca-wagtail-2019 into dev
  • Loading branch information
Patrick Gan committed Oct 22, 2024
2 parents e487cea + aa7f10e commit 0c9de22
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<a class="back-link" data-subnav-back>
<button class="button back-link" data-subnav-back>
<svg class="back-link__icon" width="12" height="8" aria-hidden="true"><use xlink:href="#arrow"></use></svg>
<span class="back-link__text">Back</span>
</a>
</button>
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
<a data-modal-open>Open video</a>
{% endif %}
<div data-modal-window class="video-modal" aria-live="polite">
<a data-modal-close class="video-modal__close">
<button data-modal-close class="button video-modal__close">
<svg class="video-modal__close-icon" width="20" height="20"><use xlink:href="#close"></use></svg>
</a>
</button>
<div class="video-modal__container">
<div style="padding-bottom: 56.25%" class="responsive-object">
{% embed video %}
Expand Down
6 changes: 5 additions & 1 deletion rca/static_src/sass/components/_back-link.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
display: flex;
pointer-events: none;

&:focus {
outline: 2px solid $color--focus;
}

@include media-query(medium) {
margin-top: ($gutter * 3.25);
}
Expand All @@ -31,7 +35,7 @@
}
}

&:hover {
&:hover, &:focus {
span {
&::after {
width: 100%;
Expand Down
4 changes: 4 additions & 0 deletions rca/static_src/sass/components/_video-modal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@
top: 20px;
right: 20px;

&:focus {
outline: 2px solid $color--focus;
}

.is-open & {
pointer-events: all;
}
Expand Down

0 comments on commit 0c9de22

Please sign in to comment.