Skip to content

Commit bfb24b5

Browse files
committed
QuickShareSelect - add disabled state, minor style changes
1 parent 4334cd3 commit bfb24b5

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

src/components/SharingEntryQuickShareSelect.vue

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div ref="quickShareDropdownContainer"
3-
:class="{ 'active': showDropdown, 'share-select': true }">
3+
:class="{ 'active': showDropdown, 'share-select': true, 'disabled': disabled }">
44
<span :id="dropdownId"
55
class="trigger-text"
66
:aria-expanded="showDropdown"
@@ -56,6 +56,11 @@ export default {
5656
type: Boolean,
5757
default: false,
5858
},
59+
// TODO apply based on mime type
60+
disabled: {
61+
type: Boolean,
62+
default: false,
63+
},
5964
},
6065
data() {
6166
return {
@@ -224,7 +229,7 @@ export default {
224229
display: flex;
225230
flex-direction: row;
226231
align-items: center;
227-
font-size: 12.5px;
232+
font-size: 14px;
228233
gap: 2px;
229234
color: var(--color-primary-element);
230235
}
@@ -255,8 +260,8 @@ export default {
255260
white-space: nowrap;
256261
text-align: left;
257262
258-
&:hover, &.selected {
259-
background-color: var(--color-background-hover);
263+
&:hover {
264+
color: var(--telekom-color-primary-standard)
260265
}
261266
}
262267
}
@@ -272,5 +277,9 @@ export default {
272277
max-height: 200px;
273278
/* Adjust the value to your desired height */
274279
}
280+
281+
&.disabled .trigger-text {
282+
color: #666;
283+
}
275284
}
276285
</style>

0 commit comments

Comments
 (0)