Skip to content

Commit

Permalink
feat(breadcrumb): update for web component
Browse files Browse the repository at this point in the history
  • Loading branch information
Lyan-u committed Aug 1, 2024
1 parent 5e5a0f5 commit 12f9c38
Showing 1 changed file with 20 additions and 10 deletions.
30 changes: 20 additions & 10 deletions style/web/components/breadcrumb/_index.less
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
color: @breadcrumb-icon-color-current;
}
}
:not(@{prefix}-breadcrumb-item) >

&:last-child {
color: @breadcrumb-text-color-current;

Expand Down Expand Up @@ -89,15 +89,6 @@
}
}

@{prefix}-breadcrumb-item:last-child {
.t-breadcrumb__item {
color: @breadcrumb-text-color-current;
.@{prefix}-breadcrumb__separator {
display: none;
}
}
}

&__inner {
font: @breadcrumb-font-base;
word-break: break-all;
Expand Down Expand Up @@ -217,4 +208,23 @@
}
}
}

// web component
@{prefix}-breadcrumb-item-light-dom {
.@{prefix}-breadcrumb__item {
color: @breadcrumb-text-color-default;
.@{prefix}-breadcrumb__separator {
display: flex;
}
}

&:last-child {
.@{prefix}-breadcrumb__item {
color: @breadcrumb-text-color-current;
.@{prefix}-breadcrumb__separator {
display: none;
}
}
}
}
}

0 comments on commit 12f9c38

Please sign in to comment.