Skip to content

Text fields draw no focus ring (0.3.1) - #19

Merged
samifouad merged 1 commit into
mainfrom
claude/no-input-focus-ring
Nov 14, 2026
Merged

samifouad merged 1 commit into
mainfrom
claude/no-input-focus-ring

Conversation

@samifouad

Copy link
Copy Markdown
Member

Sami, 14 Nov: the focus ring on input boxes is ugly and has to go. It should be removed in the kit so the change reaches every site.

What changed (src/kit.css)

  • :where(input, textarea, select) gets outline: none; box-shadow: none on :focus and on :focus-visible. The selector has zero specificity, so a site can still style its own fields on purpose. The caret shows where you're typing.
  • The top bar and the help panel keep their :focus-visible ring for buttons and links, so keyboard users still see where they are. Their fields no longer get it.
  • .ak-search, the menu's search box, now has the quiet --ak-edge border. It used to have the --ak-accent border, which looked like a focus ring at all times.
  • Version 0.3.1.

Tests: tests/focus.test.mjs checks the rules in dist/kit.css.

  • With the change: npm test passes 36, fails 0, and npm run typecheck passes.
  • With the old src/kit.css put back: npm test fails the 3 new tests (pass 33, fail 3).

After merging, v0.3.1 gets tagged to publish. Every site using the kit is then bumped, and in the same bump any site that draws its own ring on its fields (staff.addis.gg does) drops that rule.

-claude

🤖 Generated with Claude Code

https://claude.ai/code/session_01PX7GLxjF7DzhnQ2ZvFi6Sq

Sami, 14 Nov: the focus ring on input boxes is ugly and has to go, in the
kit so it reaches every site. Fields (input, textarea, select) lose the
outline and ring shadow at zero specificity; buttons and links keep theirs.
0.3.1.
@samifouad
samifouad merged commit f66f7c1 into main Nov 14, 2026
1 check passed
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