Skip to content
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

feat: Add hover effect to Navbar links #145

Merged
merged 6 commits into from
Nov 28, 2024

Conversation

Ratul-Saha-003
Copy link
Contributor

@Ratul-Saha-003 Ratul-Saha-003 commented Mar 17, 2024

Added hover effect to Navbar links.

Before:
Screenshot from 2024-03-17 19-20-39

After:
Screenshot from 2024-03-17 19-23-05

Fixes #144

@@ -104,19 +104,27 @@ button:not(:disabled) {
line-height: inherit;
margin: 0 auto;
}
/* .nav-link.dropdown-toggle:hover {
Copy link
Member

Choose a reason for hiding this comment

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

What's the purpose of all this commented out code?


button.nav-link {
background: #f9f9f9;
border: 1px solid #ccc;
border-radius: 3px;
box-shadow: 0 2px 4px -3px rgb(0 0 0 / 25%);
}

.nav-link:hover{
button.nav-link:hover {
Copy link
Member

Choose a reason for hiding this comment

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

Is there a reason you are specifically targetting buttons now?

@Ratul-Saha-003
Copy link
Contributor Author

@halkeye The PR was incomplete. It is complete now. I can't understand the reason for this linting error.

@halkeye
Copy link
Member

halkeye commented Mar 18, 2024

<file name="/home/jenkins/agent/workspace/tes_jenkins-io-components_PR-145/src/jio-navbar.css">
 <error source="stylelint.rules.rule-empty-line-before" line="107" column="1" severity="error" message="Expected empty line before rule (rule-empty-line-before)" />

does line 107 on jio-navbar.css have a empty line before the next rule?

@Ratul-Saha-003
Copy link
Contributor Author

Ratul-Saha-003 commented Mar 18, 2024

<file name="/home/jenkins/agent/workspace/tes_jenkins-io-components_PR-145/src/jio-navbar.css">
 <error source="stylelint.rules.rule-empty-line-before" line="107" column="1" severity="error" message="Expected empty line before rule (rule-empty-line-before)" />

does line 107 on jio-navbar.css have a empty line before the next rule?

@halkeye Made the appropriate changes.

@halkeye
Copy link
Member

halkeye commented Mar 18, 2024

I'll admit, i'm not sure why a hover effect is wanted. Have you talked to any of the sig leaders about it? like @MarkEWaite or @kmartens27 ?

@Ratul-Saha-003
Copy link
Contributor Author

No, but I was working with the Navbar component when I noticed that it is very easy to click another link when there is no difference on hover.

Copy link
Member

@krisstern krisstern left a comment

Choose a reason for hiding this comment

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

Thanks @Ratul-Saha-003 for the PR!

@krisstern krisstern merged commit 0bc4e6f into jenkins-infra:main Nov 28, 2024
15 checks passed
@jenkins-io-components
Copy link

🎉 This PR is included in version 1.32.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adding hover effect to Navbar links
3 participants