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

Fix the nested ripple effects in small screens sidebar component #289

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

Conversation

AbdulrhmanGoni
Copy link
Contributor

Closes #288

What change does this pull request introduce?

  • Changes Button component in small screens sidebar to a tag to avoid the an unnecessary nested ripple effects
    that Button component causes because it is inside MenuItem component which has the same ripple effect.

  • Gives the a tag classes.unstyledLink class to overwrite its default styles.

  • Removes .sidebarLink class from navbar styles file because the only component that uses this class has been changed.

Screenshots

Before changes:

Screenshot (61)
Screenshot (62)

After changes:

Screenshot (59)
Screenshot (60)

Checklist

  • I worked on a branch other than main.
  • My branch is up-to-date with the Upstream main branch.
  • I have fixed potential errors using yarn lint.
  • I ran yarn build to check everything still builds successfully.

Change `Button` component in small screens sidebar to `a` tag to avoid
the an unnecessary nested ripple effect that `Button` component causes
because it is inside `MenuItem` component which has a ripple effect.

Give the `a` tag `classes.unstyledLink` class to overwrite its default styles.

Remove `.sidebarLink` class from `navbar` styles file because the only
component that uses this class has been changed.
Copy link

vercel bot commented May 6, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
website ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 18, 2024 0:31am

@AbdulrhmanGoni AbdulrhmanGoni changed the title Change Button component in small screens sidebar to a tag Fix the nested ripple effects in small screens sidebar component May 18, 2024
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.

[BUG] there is nested ripple effects in small screens sidebar component
1 participant