Skip to content

Commit ddb610f

Browse files
committed
feat(style): change style of selected task type category
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
1 parent 7f8bcb3 commit ddb610f

File tree

1 file changed

+22
-4
lines changed

1 file changed

+22
-4
lines changed

src/components/TaskTypeSelect.vue

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
:menu-name="variants.text"
1313
:container="$refs.taskTypeSelect"
1414
:primary="isCategorySelected(variants)"
15+
:class="{ categoryWithSubSelected: isCategorySelected(variants) }"
1516
@click="onMenuCategorySelected(variants)">
1617
<NcActionButton v-for="t in variants.tasks"
1718
:key="t.id"
@@ -30,7 +31,8 @@
3031
</NcActions>
3132
<NcButton v-else
3233
:key="variants.id + '-button'"
33-
:variant="isCategorySelected(variants) ? 'primary' : 'secondary'"
34+
variant="secondary"
35+
:class="{ categorySelected: isCategorySelected(variants) }"
3436
:title="variants.text"
3537
@click="onMenuCategorySelected(variants)">
3638
<template #icon>
@@ -73,18 +75,21 @@
7375
</template>
7476

7577
<script>
76-
import NcActions from '@nextcloud/vue/components/NcActions'
77-
import NcButton from '@nextcloud/vue/components/NcButton'
78-
import NcActionButton from '@nextcloud/vue/components/NcActionButton'
7978
import MessageOutlineIcon from 'vue-material-design-icons/MessageOutline.vue'
8079
import DotsHorizontalIcon from 'vue-material-design-icons/DotsHorizontal.vue'
8180
import TextLongIcon from 'vue-material-design-icons/TextLong.vue'
8281
import ImageOutlineIcon from 'vue-material-design-icons/ImageOutline.vue'
8382
import WebIcon from 'vue-material-design-icons/Web.vue'
8483
import FileIcon from 'vue-material-design-icons/File.vue'
84+
8585
import ContentPasteSearchIcon from './icons/ContentPasteSearch.vue'
8686
import WaveformIcon from './icons/Waveform.vue'
8787
88+
import NcActions from '@nextcloud/vue/components/NcActions'
89+
import NcButton from '@nextcloud/vue/components/NcButton'
90+
import NcActionButton from '@nextcloud/vue/components/NcActionButton'
91+
import NcAssistantButton from '@nextcloud/vue/components/NcAssistantButton'
92+
8893
export default {
8994
name: 'TaskTypeSelect',
9095
@@ -93,6 +98,7 @@ export default {
9398
NcActionButton,
9499
MessageOutlineIcon,
95100
NcButton,
101+
NcAssistantButton,
96102
},
97103
98104
props: {
@@ -271,6 +277,18 @@ export default {
271277
</script>
272278

273279
<style lang="scss">
280+
.task-type-select {
281+
.categorySelected,
282+
.categoryWithSubSelected button {
283+
background: var(--color-element-assistant) !important;
284+
color: white !important;
285+
border: none !important;
286+
padding-block: 0 !important;
287+
}
288+
}
289+
</style>
290+
291+
<style scoped lang="scss">
274292
.task-type-select {
275293
display: flex;
276294
align-items: center;

0 commit comments

Comments
 (0)