fix: breadcrumb last item color does not use the breadcrumbLastItemColor token. (#40119)

* use `breadcrumbLastItemColor` token in `li:last-child`

* PR feedback

* revert change log update.
This commit is contained in:
MESSAOUDI Oussama 2023-01-10 12:13:42 +01:00 committed by GitHub
parent 7f222efff6
commit dd3db2587b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -52,8 +52,12 @@ const genBreadcrumbStyle: GenerateStyle<BreadcrumbToken, CSSObject> = (token) =>
...genFocusStyle(token),
},
[`li:last-child > ${componentCls}-separator`]: {
display: 'none',
[`li:last-child`]: {
color: token.breadcrumbLastItemColor,
[`& > ${componentCls}-separator`]: {
display: 'none',
},
},
[`${componentCls}-separator`]: {