Skip to content

Anchor menu fix#1622

Draft
davidornelas11 wants to merge 3 commits intodevfrom
anchor-menu-fix
Draft

Anchor menu fix#1622
davidornelas11 wants to merge 3 commits intodevfrom
anchor-menu-fix

Conversation

@davidornelas11
Copy link
Contributor

Description

Checklist

  • Tests pass for relevant code changes

Important Reminders

Links

Logic only lives in unity-bootstrap-theme js to be more in line with how the rest of components
behave

BREAKING CHANGE: All attach/detach and scroll logic is removed from anchor menu react component and
relies on unity-bootstrap-theme javascript
@davidornelas11 davidornelas11 requested a review from a team as a code owner February 3, 2026 00:29
@asu-jenkins-devops
Copy link
Collaborator

if (!navbar) {
console.warn(
"Anchor menu initialization failed: required elements not found"
);
Copy link
Contributor

Choose a reason for hiding this comment

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

Lets remove this since it warns anytime an anchor menu is not found and it just adds noise. (pages that do not have an anchor menu on purposed get a warning)

@scott-williams-az
Copy link
Contributor

We can go with patching existing functions, but I wonder if we can start using some modern solutions like dynamically finding any heading elements and using scroll-padding-top. I put together a POC https://github.com/ASU/asu-unity-stack/compare/anchor-menu-fix...anchor-menu-POC?expand=1

@davidornelas11 davidornelas11 marked this pull request as draft February 10, 2026 20:14
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

Comments