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

New component: Breadcrumb #1584

Open
9 tasks
benjamincharity opened this issue Jun 27, 2019 · 0 comments
Open
9 tasks

New component: Breadcrumb #1584

benjamincharity opened this issue Jun 27, 2019 · 0 comments
Assignees
Labels
Needs: planning Items that need discovery/refinement/details/etc Type: feature Functionality that doesn't currently exist

Comments

@benjamincharity
Copy link
Contributor

benjamincharity commented Jun 27, 2019

TODO


Breadcrumbs show users the current location within a hierarchy. This can be helpful at a site level to show the user's current location. It can also be leveraged to show the user's location within a more targeted section such as a Country Selector, Wizard, etc.

Open Questions - TODO

  • How should we handle overflow when the items exceed the available space?
    • Truncate part of the breakcrumb trail? Beginning? Middle?
  • What typography styles should be used?
    • Should it inherit styles? Caption styles? Default typography?

Requirements

  • Should support icons and/or text within an item
  • Each breadcrumb should support a link OR a button that fires an emitter
    • Supporting more than just router links allows us to leverage this component in items like the proposed country selector.
  • Should be constructed using a <nav> element containing an ordered list (<ol>)
    • The containing nav element should have aria-label="Breadcrumb"
  • The last item in the list should have the attribute aria-current="page"
  • The last item in the list should be plain text (not a link)
  • The last item should not have a trailing separator
  • Separators should be added via CSS so screen readers do not see them
    • Separators should be forward slashes: /

Possible usage

<ts-breadcrumb>
  <ts-link [destination]="['my', 'path']">First</ts-link>
</ts-breadcrumb>
@benjamincharity benjamincharity added Type: feature Functionality that doesn't currently exist Needs: planning Items that need discovery/refinement/details/etc labels Jun 27, 2019
@benjamincharity benjamincharity self-assigned this Jun 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs: planning Items that need discovery/refinement/details/etc Type: feature Functionality that doesn't currently exist
Projects
None yet
Development

No branches or pull requests

1 participant