Skip to content

Commit ed09a28

Browse files
committed
Improve touch target area for Consent/Checkbox privacy policy and consent link anchors to meet WCAG requirements
1 parent 1fce26e commit ed09a28

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/components/Consent/Checkbox/layouts/default.astro

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const {
3434
aria-labelledby={`${id}-label`}
3535
aria-describedby={`${id}-description`}
3636
aria-invalid="false"
37-
class="relative mt-1 h-5 w-5 shrink-0 appearance-none rounded border-2 border-content-active bg-transparent outline-none hover:border-primary hover:bg-primary-offset/10 focus:outline-none focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0 checked:border-primary checked:bg-spotlight checked:after:content-[''] checked:after:absolute checked:after:inset-1 checked:after:rounded-xs checked:after:bg-content-inverse after:pointer-events-none after:absolute after:inset-0 after:rounded-none after:border-2 after:border-transparent focus-visible:after:-inset-1 focus-visible:after:border-spotlight cursor-pointer"
37+
class="relative mt-1 h-5 w-5 shrink-0 appearance-none rounded border-2 border-trim bg-transparent outline-none hover:border-primary hover:bg-primary-offset/10 focus:outline-none focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0 checked:border-primary checked:bg-spotlight checked:after:content-[''] checked:after:absolute checked:after:inset-1 checked:after:rounded-xs checked:after:bg-content-inverse after:pointer-events-none after:absolute after:inset-0 after:rounded-none after:border-2 after:border-transparent focus-visible:after:-inset-1 focus-visible:after:border-spotlight cursor-pointer"
3838
/>
3939
<span id={`${id}-label`} class="sr-only">Consent to data processing</span>
4040
<span id={`${id}-description`} class="flex-1 text-sm leading-relaxed">
@@ -46,7 +46,7 @@ const {
4646
I consent to Webstack Builders processing my personal data for {purpose}. See our{' '}
4747
<a
4848
href={privacyPolicyUrl}
49-
class="text-primary underline hover:text-secondary hover:decoration-secondary"
49+
class="inline-flex min-h-6 items-center align-middle text-primary underline hover:text-secondary hover:decoration-secondary"
5050
target="_blank"
5151
rel="noopener noreferrer"
5252
>
@@ -55,7 +55,7 @@ const {
5555
and{' '}
5656
<a
5757
href={cookiePolicyUrl}
58-
class="text-primary underline hover:text-secondary hover:decoration-secondary"
58+
class="inline-flex min-h-6 items-center align-middle text-primary underline hover:text-secondary hover:decoration-secondary"
5959
target="_blank"
6060
rel="noopener noreferrer"
6161
>

src/components/Consent/Checkbox/layouts/download.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,14 @@ const {
4646
I consent to Webstack Builders processing my personal data for {purpose}. See our{' '}
4747
<a
4848
href={privacyPolicyUrl}
49-
class="text-white underline decoration-current hover:text-(--color-blue-100) focus-visible:text-(--color-blue-100)"
49+
class="inline-flex min-h-6 items-center align-middle text-white underline decoration-current hover:text-blue-100 focus-visible:text-blue-100"
5050
>
5151
Privacy Policy
5252
</a>{' '}
5353
and{' '}
5454
<a
5555
href={cookiePolicyUrl}
56-
class="text-white underline decoration-current hover:text-(--color-blue-100) focus-visible:text-(--color-blue-100)"
56+
class="inline-flex min-h-6 items-center align-middle text-white underline decoration-current hover:text-blue-100 focus-visible:text-blue-100"
5757
>
5858
Cookie Policy
5959
</a>

0 commit comments

Comments
 (0)