Skip to content

fix(MainHeader): button bottom border flicker #1193

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

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

marvin-j97
Copy link
Contributor

  • I have read the Contribution guide
  • This PR references an issue (except for typos, broken links, or other minor problems)

Description(required)

Fixes flicker because border starts off being 0px, now it is transparent, so only the color transitions.

Copy link

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

Copy link

netlify bot commented Jun 3, 2025

Deploy Preview for solid-docs ready!

Name Link
🔨 Latest commit e19f0fb
🔍 Latest deploy log https://app.netlify.com/projects/solid-docs/deploys/684d0c16004351000883ff4d
😎 Deploy Preview https://deploy-preview-1193--solid-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@marvin-j97
Copy link
Contributor Author

Feel free to close in favour of #1194

Copy link
Collaborator

@amirhhashemi amirhhashemi left a comment

Choose a reason for hiding this comment

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

My only concern is that the border color is defined in two places simultaneously, which could lead to conflicts. Currently, border-b-blue-500 is defined after border-transparent in the Tailwind output CSS file, so it overrides border-transparent. However, if we change border-transparent to something else in the future, this could cause some confusion.

I suggest using inactiveClass to apply border-transparent only when the link is not active.

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