Skip to content

Commit

Permalink
fix: label colors in executions list
Browse files Browse the repository at this point in the history
  • Loading branch information
elevatebart committed Jan 29, 2025
1 parent dd8a45f commit 6dfa08a
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 16 deletions.
14 changes: 1 addition & 13 deletions ui/src/components/layout/Labels.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<el-tag
v-for="(value, key) in labelMap"
:key="key"
:type="checked(key, value) ? 'primary' : 'info'"
:type="checked(key, value) ? 'primary' : 'default'"
class="me-1 labels"
size="small"
disable-transitions
Expand Down Expand Up @@ -83,15 +83,3 @@
}
};
</script>

<style lang="scss" scoped>
:deep(.el-tag) {
& a, span {
color: var(--bs-white);
}
&.el-tag--info {
background: var(--bs-gray-600);
}
}
</style>
9 changes: 6 additions & 3 deletions ui/src/styles/layout/element-plus-overload.scss
Original file line number Diff line number Diff line change
Expand Up @@ -974,11 +974,14 @@ form.ks-horizontal {

// tags
.el-tag {
--el-tag-bg-color: var(--ks-tag-background);
--el-tag-hover-color: var(--bs-gray-600-darken-2);
--el-tag-text-color: var(--ks-tag-content);
--el-tag-bg-color: var(--ks-background-tag);
--el-tag-text-color: var(--ks-content-primary);
border: 0;

a{
color: var(--ks-content-primary);
}

@each $i in ($types) {
&.el-tag--#{$i} {
--el-tag-text-color: #{darken(map.get($element-colors, $i, 'base'), 45%)};
Expand Down
13 changes: 13 additions & 0 deletions ui/tests/storybook/components/executions/Executions.fixture.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@
"type": "io.kestra.plugin.core.trigger.Schedule",
"cron": "*/1 * * * *"
}
],
"labels": [
{"key":"airbyte", "value":"007"},
{"key":"sync", "value":"false"}
]
},
{
Expand Down Expand Up @@ -71,6 +75,9 @@
"type": "io.kestra.plugin.core.log.Log",
"message": "Hello from {{ flow.id }}"
}
],
"labels": [
{"key":"kestra", "value":"42"}
]
},
{
Expand All @@ -92,6 +99,9 @@
"type": "io.kestra.plugin.core.log.Log",
"message": "Hello World! \uD83D\uDE80"
}
],
"labels": [
{"key":"labelwithNoValue"}
]
},
{
Expand Down Expand Up @@ -148,6 +158,9 @@
"type": "io.kestra.plugin.core.log.Log",
"message": "Hello World! \uD83D\uDE80"
}
],
"labels": [
{"key":"long label with a value", "value":"this is a long value"}
]
},
{
Expand Down

0 comments on commit 6dfa08a

Please sign in to comment.