Skip to content

fix(unity-bootstrap-theme): fix anchor menu js#1667

Open
davidornelas11 wants to merge 2 commits intodevfrom
anchor-menu-issue
Open

fix(unity-bootstrap-theme): fix anchor menu js#1667
davidornelas11 wants to merge 2 commits intodevfrom
anchor-menu-issue

Conversation

@davidornelas11
Copy link
Copy Markdown
Contributor

@davidornelas11 davidornelas11 commented Apr 1, 2026

Anchor menu fix to fix the focus order as well as adds correct hash in url bar. Also adds check for unity-react-core react anchor menu since that handles its own logic, currently used in app degree detail page. Eventually we want to remove that logic in the unity-react-core anchor menu but that will be a breaking change.

Description

Checklist

  • Tests pass for relevant code changes

Important Reminders

Links

@davidornelas11 davidornelas11 requested a review from a team as a code owner April 1, 2026 00:16
@davidornelas11 davidornelas11 mentioned this pull request Apr 1, 2026
1 task
@asu-jenkins-devops
Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown
Member

@mlsamuelson mlsamuelson left a comment

Choose a reason for hiding this comment

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

Are there limitations on how should I be able to verify this one in storybook? I haven't dug into the stories and how their assets are loaded in storybook since they're not in the PR, but what I see is:

  • asu-react-core react anchor works
  • asu-react-core bootstrap anchor doesn't
  • unity-bootstrap-theme anchor works

Given that the pr is for unity-bootstrap-theme, I thinking this is a pass, but wondering if there's any way the asu-react-core fix can happen, or is does that involve the future breaking change?

const topOffset = headerBottom + navbarHeight;
const targetTop = anchorTarget.getBoundingClientRect().top;
const viewportMid = window.innerHeight / 2;
console.log("viewportmid", viewportMid, "targetTop", targetTop);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can we remove this console.log?

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.

3 participants