Skip to content

UDS-1998: feat(components-core): added close functionality when clicking an anchor in the Anchor menu #1529

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 2 commits into
base: dev
Choose a base branch
from

Conversation

juanmitriatti
Copy link
Contributor

feat(components-core): added close functionality when clicking an anchor in the Anchor menu

UDS-1998

Description

Checklist

  • Tests pass for relevant code changes

Important Reminders

Links

@juanmitriatti juanmitriatti requested a review from a team as a code owner May 1, 2025 13:15
@asu-jenkins-devops
Copy link
Collaborator

Copy link
Contributor

@davidornelas11 davidornelas11 left a comment

Choose a reason for hiding this comment

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

This should actually be in unity react core instead of components core. The only updates we plan on doing for components-core are important security updates.

@scott-williams-az
Copy link
Contributor

I added a commit to this PR since the coding format can be a little tricky when it comes to providing a working solution for both bootstrap and react. (using isReact and isBootstrap variables)

@davidornelas11
Copy link
Contributor

davidornelas11 commented May 6, 2025

Scotts changes work for closing the anchor menu but I think the original issue is that the top of the section should be in view when clicking the anchor link. Ive noticed we have the id set to the section instead of the heading on webspark. This might be an issue for webspark as well but this pr looks good after removing the components-core code

davidornelas11
davidornelas11 previously approved these changes May 6, 2025
@davidornelas11 davidornelas11 self-requested a review May 6, 2025 23:26
@davidornelas11 davidornelas11 dismissed their stale review May 6, 2025 23:26

Wrong approval

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.

4 participants