Skip to content

Why ring instead of border? #14602

Answered by adamwathan
pspeter3 asked this question in Help
Oct 4, 2024 · 2 comments · 4 replies
Discussion options

You must be logged in to vote

@pspeter3 We still use borders a ton, what I meant by that comment is that when we do use ring-* it's usually as an alternative to border, rather than as a focus ring. We use outline-* for focus rings most of the time now. So instead of the ring utility being optimized for focus rings by default (which is where the 3px width came from), we're optimizing for using it as a stroke/border by default, and making it 1px so it's more consistent with the border and outline utilities. Using 3px felt like a weird magic number, 1px as a default just feels less surprising I think.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@pspeter3
Comment options

@tryoxiss
Comment options

Comment options

You must be logged in to vote
2 replies
@adamwathan
Comment options

@pspeter3
Comment options

Answer selected by pspeter3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants