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

feat(breadcrumb): [breadcrumb] Add dark theme #2984

Merged
merged 2 commits into from
Mar 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions packages/theme/src/breadcrumb/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,12 @@
.@{breadcrumb-prefix-cls}__inner {
font-weight: var(--tv-Breadcrumb-text-font-weight);
text-decoration: none;
color: var(--tv-Breadcrumb-last-text-color);

Choose a reason for hiding this comment

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

Ensure that the new color variable --tv-Breadcrumb-last-text-color is defined in the theme configuration to avoid potential issues with undefined variables.


a {
cursor: text;
text-decoration: none;
color: var(--tv-Breadcrumb-last-text-color);

Choose a reason for hiding this comment

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

Ensure that the new color variable --tv-Breadcrumb-last-text-color is defined in the theme configuration to avoid potential issues with undefined variables.

}
}

Expand Down
6 changes: 4 additions & 2 deletions packages/theme/src/breadcrumb/vars.less
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@
// 文本行高
--tv-Breadcrumb-text-line-height: var(--tv-line-height-number);
// 文本色
--tv-Breadcrumb-text-color: var(--tv-color-text);
--tv-Breadcrumb-text-color: var(--tv-color-text-control);
// 选中文本色
--tv-Breadcrumb-last-text-color: var(--tv-color-text-active-3);
// 分隔符填充色
--tv-Breadcrumb-separator-icon-color: var(--tv-color-icon);
--tv-Breadcrumb-separator-icon-color: var(--tv-color-text-placeholder);
// 分割箭头宽度
--tv-Breadcrumb-separator-width: 16px;
// 分隔图标的水平外边距
Expand Down