p-foundation / pink-app

The repository is created for learning adaptive web design and team collaboration through git and GitHub
https://p-foundation.github.io/pink-app/
0 stars 0 forks source link

Bug: hover on inactive links in header #31

Closed MarPostovik closed 6 months ago

MarPostovik commented 6 months ago

Description In our project, we have the header, which has links to different pages of the website. But one link does not link anywhere. It is the link that tells us the name of the page, where we already are. But when we hover over it or click and hold our mouse we still see that it changes color as if it should link somewhere else. I suggest removing the styles for active and hover state for that link.

To Reproduce Steps to reproduce the behavior:

  1. Go to index.html
  2. Hover over the Главная link or click and hold your mouse.
  3. You'll see that the link changes color to pink when hovered and to grey when clicked.

Expected behavior The link shouldn't react. There should not be any change at hover or down state because this link just shows on which page we are and does not link anywhere.

Video

https://github.com/p-foundation/pink-app/assets/126704357/0c00e6ea-b71a-46dc-ba6f-ec65dbc3410a

Desktop:

Additional context

Here is how the code for hover and active state looks like now:

.header__navigation-link:hover{
    color: rgb(178, 40, 102);
}

.header__navigation-link:active{
    color: rgb(255, 255, 255, 0.5);
}

Quick Instruction for Working on the Issue ‼️ Before checking out to a new branch, ensure you have the latest updates from the main by running git pull command.

.slider__dot:not(:disabled):hover{
  background-color: rgb(233 235 236);
}

Here the background-color is applied to all elements that have the class slider__dot except of the elements that have attribute disabled.

This pull request resolves [#123](https://github.com/username/repository/issues/123)
naumch1k commented 6 months ago

@MarPostovik I appreciate how well-structured and comprehensive this issue is. It's great that it provides clear steps to reproduce the behavior, making it easy for others to understand and replicate the problem. Thanks for that!

Do you think we should remove the square brackets for the selected Desktop options in the template? This minor adjustment may help us maintain a cleaner formatting style 😉 Desktop:

MarPostovik commented 6 months ago

@naumch1k I think it's a good idea 😃

naumch1k commented 6 months ago

@MarPostovik, also, how about suggesting a hint about addressing the problem instead of providing a direct answer?

For instance, we could recommend modifying the selector to exclude active links using the CSS pseudoclass :not(), including a link to resources explaining this pseudoclass for further learning. Rather than presenting the entire code snippet, we could offer an example of its usage from somewhere else or another part of our application and explain what it does.

This approach could provide a valuable opportunity for issue solvers to learn and apply their knowledge 😉

MarPostovik commented 6 months ago

@naumch1k thank you for the suggestion ❤️ . I updated the description. Does it look better now? What do you think?

naumch1k commented 6 months ago

@MarPostovik I think it looks great! Thank you so much for making the changes 🫶

rasokolovska commented 6 months ago

.take

github-actions[bot] commented 6 months ago

@rasokolovska 👋 Thanks for picking up this issue! 🙌 Feel free to reach out if you need any help or have questions!