Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lack of Error Handling, Default Prop Values, and Accessibility Features in Breadcrum Component #538

Open
Swapnilden opened this issue Jun 22, 2024 · 0 comments

Comments

@Swapnilden
Copy link

Issue Description

The Breadcrum component lacks proper error handling, default prop values, and accessibility features. It also does not validate prop types or allow customization of the breadcrumb separator icon.

Steps to Reproduce

  1. Use the Breadcrum component without providing a product prop.
  2. Provide a product prop with missing category or name fields.
  3. Attempt to customize the breadcrumb separator icon.

Expected Behavior

  1. The Breadcrum component should render without errors even if the product prop is missing or incomplete.
  2. Default values should be used if category or name fields are missing from the product prop.
  3. The separator icon between breadcrumb items should be customizable.
  4. Accessibility attributes should be present for images.

Actual Behavior

  1. The Breadcrum component throws an error if the product prop is missing.
  2. Missing category or name fields result in rendering issues.
  3. The separator icon is not customizable.
  4. Images lack alt attributes for accessibility.

Screenshots

N/A

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

No branches or pull requests

1 participant