question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Implement token for accessible border width

See original GitHub issue

on tabs/etc that use a border to highlight the current location, the border should be a minimum of 3px to meet accessibility standards. this is a a thing i’ve had to implement in a couple places on the website.

i recommend making a new token for this width, and then doing a pass thru all of our components to make sure any 2px borders are bumped up to this

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
lovemecomputercommented, May 16, 2019

thoughts on naming/organization of this token:

i asked @aagonzales over slack about filing this under a layout or spacing name. anna said:

I dont think those, the spacing and layout tokens are for the empty spaces. You wouldn’t use it for a border. Spacing essentially equals margin or padding.

I think you thinking more of something that would be like sizing. Which we could add but its kind of like the mini unit increments.

good note on a set of sizing tokens.

@shixiedesign sizing token category might be good for the button borders you mentioned as well!

1reaction
lovemecomputercommented, Apr 22, 2019

@asudoh you’re right! transferred here to carbon-elements 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Border Radius Tokens
Create a Border radius token under the Border radius category by clicking on the + icon. Enter a name for your token and...
Read more >
Border | U.S. Web Design System (USWDS)
Note: The border utilities apply a solid border of specified width. If no width is specified, the utilities apply a solid 1px border....
Read more >
Design Tokens - Lightning Design System
Use radius tokens to change the border-radius size (rounded corners). Token, Example, Released, Themeable, Support. $border-radius-circle. Circle for global use ...
Read more >
Border Width | Citizens Design System - Website (v3.18.0)
Example Description Token visual example of border‑width: 0 Border Width: None. 0px border width. $cbds‑tkn‑bord... visual example of border‑width: 8px Border Width: Large. 8px border...
Read more >
Border Radius Tokens - Shoelace
Border radius tokens are used to give sharp edges a more subtle, rounded effect. They use rem units so they scale with the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found