Giter VIP home page Giter VIP logo

breadcrumb's Introduction

đŸ“ĸ Use this project, contribute to it or open issues to help evolve it using Store Discussion.

All Contributors

Breadcrumb

The VTEX BreadCrumb is a navigation scheme that shows a user's browsing history up to their current location in your store.

img2-breadcrumb

Configuration

  1. Import the breadcrumb's app to your theme's dependencies in the manifest.json, for example:
  dependencies: {
    "vtex.breadcrumb": "1.x"
  }
  1. Add the breadcrumb block to the Product template. For example:
 "breadcrumb": {
    "props": {
      "showOnMobile": true
    }
  },
Prop name Type Description Default value
showOnMobile Boolean It determines whether Breadcrumb should also be displayed on mobile false
homeIconSize Number Controls the size property of IconHome 26
caretIconSize Number Controls the size property of IconCaret 8

⚠ī¸ The product's categories should appear as an array in one of this two formats:

categories = ['/Eletronics/', '/Eletronics/Computers']
categories = ['eletronics', 'eletronics-computers']
  1. Add the breadcrumb.search block to the Search template. For example:
 "breadcrumb.search": {
    "props": {
      "showOnMobile": true
    }
  },
Prop name Type Description Default value
showOnMobile Boolean It determines whether Breadcrumb should also be displayed on mobile false
homeIconSize Number Controls the size property of IconHome 26
caretIconSize Number Controls the size property of IconCaret 8

ℹī¸ The breadcrumb.search block is specific for the Breadcrumb inside the search result page.

Customization

In order to apply CSS customizations in this and other blocks, follow the instructions given in the recipe on Using CSS Handles for store customization.

CSS Handles
container
link
arrow
homeLink
termArrow

Contributors ✨

Thanks goes to these wonderful people:

This project follows the all-contributors specification. Contributions of any kind welcome!

breadcrumb's People

Contributors

augustolazaro avatar brunoabreu avatar claudivanfilho avatar denisebiscaro avatar dependabot[bot] avatar estacioneto avatar guerreirobeatriz avatar gugabribeiro avatar guifromrio avatar hiagolcm avatar iaronaraujo avatar jgfidelis avatar juanalmeida12 avatar kaisermann avatar karenkrieger avatar klynger avatar klzns avatar koz avatar lbebber avatar lucasecdb avatar matheusps avatar rerissondaniel avatar salesfelipe avatar thalytafabrine avatar theomoura avatar tlgimenes avatar victorhmp avatar vitoria avatar vtex-io-ci-cd[bot] avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

breadcrumb's Issues

Search terms break characters in breadcrumb on page load. ( departament )

Expected Behavior

When filtering for a term, breadcrumb should not have character breaks when reloading the page.

Current Behavior

When accessing the department : "infantil" using the render-runtime, then filtering by "idade" for instace "0 a 4 anos", the text that comes in the breadcrumbs works correctly, but when reloading the filtered page, the breadcrumb gets special characters, probably because of the white spaces between the letters.

Steps to Reproduce (for bugs)

  1. Go to https://newbalance.myvtex.com
  2. Choose the department : "infantil" , then filter by "idade"
  3. Wait for the page to finish loading, then reload it
  4. The breadcrumb will be broken with special characters.

bug - >

https://ibb.co/KrKccHw
https://ibb.co/619Ct7P

Your Environment

  • Windows 7
  • Chrome 75

Breadcrumb links rendered incorrectly

While navigating the site on worldshopping.myvtex.com we're seeing an issue when the user clicks on the breadcrumbs. Using the navigation menu the URLs for the departments/categories are correct. If I use the breadcrumbs to navigate the URL for the department are incorrect.

Expected Behavior

The breadcrumb links rendered should be department/category links.

Current Behavior

The breadcrumb links render a label-specific link, including spaces.

Steps to Reproduce (for bugs)

  1. Navigate to a PDP.
  2. Click any breadcrumb link.

Context

One of our SIs has reported this issue affecting a theme they are building. I'm opening up an issue for them since I was able to reproduce the issue on our internal demo environment.

Separator Icon missing customization

There is no option to change icon from caret arrow to anything else. How do i change this?

Expected Behavior

A prop should exist, "separatorIcon": ["text", "icon", "custom"]

Current Behavior

no option of changing

Context

My client wants dash instead of arrow.

Slugs 404 with '/d' on breadcrumb loading

Describe the bug
The breadcrumb initially appears with category slugs ending in '/d'. When the page finishes loading, these slugs are removed, but Google can still read these links.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click 'Stop Load' when the breadcrumb is long
  3. See the error

Expected behavior: The breadcrumb should remain consistent before and after loading.

Screenshots
a375710c079b9c1d51a8f3d03920756c_choco

Desktop environment:

Device: Laptop Lenovo
OS: Windows 11
Browser: Google Chrome

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤ī¸ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.