Skip to content

Hide focus outline in documentation search bar #1003

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

mediremi
Copy link
Contributor

@mediremi mediremi commented May 1, 2025

The documentation search input already had an outline-none Tailwind class, but due to conflicting styles in the same stylesheet with higher specificity, it had no effect.

By changing it to focus:outline-none, this rule now has high enough specificity to actually disable outlines.

I've also increased the input's height to 3.5rem, which makes it much easier to click on.

Before After
image image

Copy link

vercel bot commented May 1, 2025

@mediremi is attempting to deploy a commit to the ReScript Association Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Member

@fhammerschmidt fhammerschmidt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice, thank you!

@fhammerschmidt fhammerschmidt merged commit 733f714 into rescript-lang:master May 1, 2025
1 of 2 checks 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.

2 participants