Skip to content

Commit

Permalink
WCAG 2.2 updates - Accordion, link
Browse files Browse the repository at this point in the history
  • Loading branch information
oisa committed Oct 22, 2024
1 parent 2e16d34 commit 0dee6f7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/components/accordion/_accordion.scss
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
display: flex;
justify-content: flex-end;
margin-bottom: rem(16px);
margin-right: rem(2px);

button {
@include font-size('sm');
Expand All @@ -47,7 +48,6 @@
text-decoration-skip-ink: auto;
font-weight: var(--nsw-font-bold);
border: 0;
padding: 0;
background: none;

&:hover:enabled {
Expand All @@ -66,7 +66,7 @@
}

&:first-child {
margin-right: rem(24px);
margin-right: rem(12px);
}

&:disabled {
Expand All @@ -78,7 +78,7 @@
color: var(--nsw-text-light);

&:focus {
outline-color: var(--nsw-white);
outline-color: var(--nsw-wh paddite);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/link/_link.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
</p>{{/if}}{{#if icon}}<a class="js-link" href="https://digital.nsw.gov.au">{{#if-equals type "download"}}
<span class="material-icons nsw-material-icons" title="download file">file_download</span><span>My Link (PDF, 123.45 KB)</span>{{/if-equals}}{{#if-equals type "external"}}
<span>{{#if content}}{{content}}{{else}}My Link{{/if}}</span><span class="material-icons nsw-material-icons" title="(opens in new window)">open_in_new</span>{{/if-equals}}
</a>{{/if}}
</a>{{/if}}
2 changes: 2 additions & 0 deletions src/global/scss/base/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@
font-weight: var(--nsw-font-bold);
color: var(--nsw-link);
text-decoration: underline;
padding: 2px;
// background-color: var(--nsw-link-light);

&:visited {
color: var(--nsw-visited);
Expand Down

0 comments on commit 0dee6f7

Please sign in to comment.