Skip to content

Commit

Permalink
feat(Breadcrumbs): use ol instead of ul (#7007)
Browse files Browse the repository at this point in the history
  • Loading branch information
bvandercar-vt authored Oct 8, 2024
1 parent 0cb9e27 commit 73502b1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions packages/core/src/components/breadcrumbs/_breadcrumbs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
Breadcrumbs
Markup:
<ul class="#{$ns}-breadcrumbs">
<ol class="#{$ns}-breadcrumbs">
<li><a class="#{$ns}-breadcrumbs-collapsed" href="#"></a></li>
<li><a class="#{$ns}-breadcrumb #{$ns}-disabled">Folder one</a></li>
<li><a class="#{$ns}-breadcrumb" href="#">Folder two</a></li>
<li><a class="#{$ns}-breadcrumb" href="#">Folder three</a></li>
<li><span class="#{$ns}-breadcrumb #{$ns}-breadcrumb-current">File</span></li>
</ul>
</ol>
Styleguide breadcrumbs
*/
Expand All @@ -30,7 +30,7 @@ Styleguide breadcrumbs
margin: 0;
padding: 0;

// descendant selector because nothing should come between ul and li
// descendant selector because nothing should come between ol and li
> li {
align-items: center;
display: flex;
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/components/breadcrumbs/breadcrumbs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export class Breadcrumbs extends AbstractPureComponent<BreadcrumbsProps> {
<OverflowList
collapseFrom={collapseFrom}
minVisibleItems={minVisibleItems}
tagName="ul"
tagName="ol"
{...overflowListProps}
className={classNames(Classes.BREADCRUMBS, overflowListProps.className, className)}
items={items}
Expand Down

1 comment on commit 73502b1

@svc-palantir-github
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

feat(Breadcrumbs): use ol instead of ul (#7007)

Build artifact links for this commit: documentation | landing | table | demo

This is an automated comment from the deploy-preview CircleCI job.

Please sign in to comment.