Repository navigation
fix: make current breadcrumb item clickable on mobile - #3476
Merged
Merged
Conversation
JammingBen
reviewed
Sep 30, 2026
JammingBen
approved these changes
Sep 30, 2026
openclouders
pushed a commit
that referenced
this pull request
Sep 30, 2026
* fix: make current breadcrumb item clickable on mobile * refactor: split OcBreadcrumb into item and context menu sub-components * fix: only mark desktop breadcrumb item as last item text * fix: don't render plain text breadcrumb items bold * fix: use unique id for breadcrumb context menu drop * chore: retrigger ci
This was referenced Oct 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
On mobile screens,
OcBreadcrumbhides the breadcrumb list and shows only the current (last) item in.oc-breadcrumb-mobile-current. That element was hard-coded as a plain<span>and ignored the item'stoandonClick. So on mobile you couldn't click the current breadcrumb, while on desktop the same item is a router link or a button, e.g. to reload the Spaces, Deleted files or Search results list.The mobile current item now renders the same way as on desktop:
routerLinkComponent) if the item hastobuttonthat calls the handler if the item hasonClickLink and button items stay bold. The icon is part of the clickable area,
aria-current="page"is kept, and clickable items get a pointer cursor and underline on hover.The context menu (
showContextActions) stays desktop-only, as before.Refactoring
OcBreadcrumb.vuewas well above the ~300 line guideline, and the item rendering was duplicated between the desktop list and the mobile view. It's now split into two internal sub-components:OcBreadcrumbItem.vuerenders a single item as a router link, a button or plain text. Both the desktop list and the mobile current item use it.OcBreadcrumbContextMenu.vuecontains the "three dots" trigger and its dropdown. The trigger now gets a unique id instead of the fixed#oc-breadcrumb-contextmenu-trigger.OcBreadcrumb.vueshrinks from ~450 to ~330 lines. Side effects:tooronClick(plain text) is no longer bold, on desktop and mobile. Previously it was bold on mobile onlyaria-current="page"is now determined from the displayed items instead of the originalitems, so it's correct when items are truncatedRelated Issue
How Has This Been Tested?
OcBreadcrumbItem(link, button with click handler, plain text, current state, icon) and for the context menu placementTypes of changes