Skip to content

Commit

Permalink
feat: update tag colors
Browse files Browse the repository at this point in the history
  • Loading branch information
Justineo committed Nov 23, 2023
1 parent 1cae0bc commit da4cb70
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 14 deletions.
15 changes: 6 additions & 9 deletions packages/veui-theme-dls/components/tag.less
Original file line number Diff line number Diff line change
Expand Up @@ -54,23 +54,20 @@
}

&-default {
.apply-color(@dls-tag-color);
.apply-color(@dls-tag-color-default, false);

&.@{veui-prefix}-tag-selected {
.apply-flip-color(selected, @dls-tag-color);
.apply-color(@dls-tag-color-default-selected);
}

&[ui~="reverse"] {
.apply-flip-color(reverse, @dls-tag-color);
.apply-flip-color(reverse, @dls-tag-color-default);
}

&[ui~="theme:d22"] {
.apply-color(fade(@dls-color-translucent-2, 100%), false);
color: @dls-foreground-color-neutral;
color: @dls-tag-font-color-default;

.@{veui-prefix}-tag-remove {
color: @dls-foreground-color-neutral-weak;
}
.@{veui-prefix}-tag-remove {
color: @dls-foreground-color-neutral-weak;
}
}

Expand Down
2 changes: 1 addition & 1 deletion packages/veui-theme-dls/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"dls-icons-vue": "~3.28.0",
"dls-illustrations-vue": "^1.4.3",
"focus-visible": "^4.1.5",
"less-plugin-dls": "11.8.2",
"less-plugin-dls": "11.8.4",
"less-plugin-est": "^3.0.1"
},
"peerDependencies": {
Expand Down
22 changes: 22 additions & 0 deletions packages/veui/demo/cases/Tag.vue
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,28 @@
</div>
</section>

<section>
<h2>反色标签</h2>
<div>
<veui-tag
v-for="status in statuses"
:key="status"
:status="status"
:selected.sync="selected"
:ui="'reverse' + (bordered ? ' bordered' : '')"
selectable
>{{ status }}</veui-tag>
<veui-tag
v-for="color in colors"
:key="color"
:color="color"
:selected.sync="selected"
:ui="'reverse' + (bordered ? ' bordered' : '')"
selectable
>{{ color }}</veui-tag>
</div>
</section>

<section>
<h2>禁用标签</h2>
<div>
Expand Down
8 changes: 4 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 comment on commit da4cb70

@vercel
Copy link

@vercel vercel bot commented on da4cb70 Nov 23, 2023

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

veui – ./

veui-ecomfe.vercel.app
veui-git-main-ecomfe.vercel.app
main.veui.dev
veui-demo.vercel.app

Please sign in to comment.