Change Breadcrumbs behavior in small sizes
Ahmed-Hakeem opened this issue · comments
Ahmed Hakeem commented
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
- Open any page with nested nav items on a device with a small screen size
- 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
Anything else?
related Bug: #8627
Validations
- I have read the Community Participation Guidelines.
- I have verified that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- I have checked that this is a concrete bug. For Q&A open a GitHub Discussion.