mdn / yari

The platform code behind MDN Web Docs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Change Breadcrumbs behavior in small sizes

Ahmed-Hakeem opened this issue · comments

Summary

Just a proposal from a user frequently using the app on mobile.
I found it better to show the previous nav item instead of the root for ex:
" Array> Array.prototype.slice() " instead of "References > Array.prototype.slice()"

URL

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice

Reproduction steps

  1. Open any page with nested nav items on a device with a small screen size
  2. Check the breadcrumbs' shown items

Expected behavior

I expect it to have "parent of the current page" and "current page"

Actual behavior

it shows the "root nav item" and the "current page" item

Device

Smartphone

Browser

Edge

Browser version

Stable

Operating system

iOS

Screenshot

Current:
image

Expected:
image

Anything else?

related Bug: #8627

Validations