Skip to content

fix(lxlweb): a11y NL160 (target size minimum) - #1664

Open
jesperengstrom wants to merge 1 commit into
developfrom
fix-lxlweb-a11y-nl160
Open

fix(lxlweb): a11y NL160 (target size minimum)#1664
jesperengstrom wants to merge 1 commit into
developfrom
fix-lxlweb-a11y-nl160

Conversation

@jesperengstrom

@jesperengstrom jesperengstrom commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

Description

Solves

Report no: NL160

  • Click targets should be at least 24 x 24px in size

For our part the issue is links, or list of links, where the target size is not sufficient. Inline links are an exception to the target minimum rule, but when displayed next to each other as a list, the exception does not apply and vertical spacing between links must be sufficient.

My simple fix here is to set .link and .link-subtle to line-height 1.5rem. Setting a fixed line-height to variable text seems like a bad idea, but in practice it works quite well. Our links are (as far as i can tell) of sizes 12-16px. That gives a line-height of 2 to 12px links and 1.5 to 16px links, resulting in a 24px line overall.

Some examples before/after:

Skärmavbild 2026-08-24 kl  16 47 45 Skärmavbild 2026-08-24 kl  16 47 21

/

Skärmavbild 2026-08-24 kl  16 49 28 Skärmavbild 2026-08-24 kl  16 49 17

/

Skärmavbild 2026-08-24 kl  16 50 40 Skärmavbild 2026-08-24 kl  16 50 54

Summary of changes

  • Update link line-height
  • icon placement fix

@jesperengstrom
jesperengstrom marked this pull request as ready for review August 24, 2026 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant