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

Implement UsaBreadcrumb component #11

Closed
1 task done
patrickcate opened this issue Oct 30, 2021 · 0 comments
Closed
1 task done

Implement UsaBreadcrumb component #11

patrickcate opened this issue Oct 30, 2021 · 0 comments
Assignees
Labels
feature New feature or request

Comments

@patrickcate
Copy link
Owner

patrickcate commented Oct 30, 2021

Breadcrumb

Breadcrumbs provide secondary navigation to help users understand where they are in a website.

status: draft

Props

Name Type Default Required Options
items Array n/a true n/a
wrap Boolean false false n/a

Slots

  • default: scoped with items prop.

CSS Classes

  • wrap: usa-breadcrumb--wrap

External Libraries

  • None

Sub-Components

Dependencies

  • None

Notes

  • The nav element should have a aria-label set to Breadcrumb.
  • Item schema matches that for the BaseLink component.

Tests

  1. The component root is rendered as a nav element.
  2. The component root nav element should have a description aria-label attribute.
  3. The component is rendered as an ordered list of items.
  4. If the last item is the current page it should not be rendered as a link.
  5. If the last item is the current page it should have the aria-current attribute set to page.
  6. If the last item is the current page it should have the usa-current CSS class applied.
  7. The items prop is required.
@patrickcate patrickcate changed the title UsaAccordionItems component Implement Breadcrumb component Oct 30, 2021
@patrickcate patrickcate changed the title Implement Breadcrumb component Implement UsaBreadcrumb component Oct 30, 2021
@patrickcate patrickcate added the feature New feature or request label Nov 11, 2021
@patrickcate patrickcate self-assigned this Nov 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant