Skip to content

refactor: logged-in dropdown as button not link#2

Closed
wesleyboar wants to merge 1 commit into
mainfrom
cursor/tup-ui-changes-port-6eca
Closed

refactor: logged-in dropdown as button not link#2
wesleyboar wants to merge 1 commit into
mainfrom
cursor/tup-ui-changes-port-6eca

Conversation

@wesleyboar
Copy link
Copy Markdown
Owner

@wesleyboar wesleyboar commented Mar 20, 2026

Important

Migrated to TACC#1256.

Overview

Port of TACC/tup-ui#537 commit 4b63942 and b3a6487.

Related

Changes

In nav_portal.raw.html, changes the authenticated user dropdown toggle from <a href="#" role="button"> to <button type="button">, which is semantically correct since the element triggers an action (opens a dropdown) rather than navigating anywhere.

Testing

  1. Log in to the portal.
  2. Confirm the username dropdown in the nav bar opens and closes correctly.
  3. Confirm keyboard navigation (Enter/Space) activates the dropdown.
Open in Web Open in Cursor 

Change the authenticated user dropdown toggle from an anchor element
to a button element, which is semantically correct since it triggers
an action (opens a dropdown) rather than navigating to a URL.

- Remove href="#" and role="button"
- Add type="button"
- Change closing </a> to </button>

Port of TACC/tup-ui#537 commit 4b63942 (with fix from b3a6487
applied inline, avoiding that intermediate invalid-HTML state).

Co-authored-by: Wesley B <wesleyboar@users.noreply.github.com>
@wesleyboar
Copy link
Copy Markdown
Owner Author

Important

Migrated to TACC#1256.

@wesleyboar wesleyboar closed this Mar 24, 2026
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.

2 participants