Skip to content

Commit

Permalink
fix(breadcrumb): ensure alignement with empty text (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
dpellier authored Jun 8, 2023
1 parent be51df5 commit d3a91e3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ export class OsdsBreadcrumbItem implements OdsBreadcrumbItem<OdsStencilMethods<O
</osds-icon>
</span>
}
{this.label}
{/* wbr enfore baseline alignement if there are no text */}
{this.label || <wbr />}
</osds-link>
</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@

::slotted([slot="start"]),
::slotted([slot="end"]) {
vertical-align: top;
display: inline-flex;
align-self: center;
}

:host(:not([href])),
Expand Down Expand Up @@ -68,11 +69,6 @@
}
}

::slotted([slot="start"]), ::slotted([slot="end"]) {
display: inline-flex;
align-self: center;
}

// apply the theme template for the component
@include ods-theme-component() {
@include osds-link-theme-color();
Expand Down

0 comments on commit d3a91e3

Please sign in to comment.