aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorfenn-cs <fenn25.fn@gmail.com>2023-11-27 20:03:23 +0100
committerAndy Scherzinger <info@andy-scherzinger.de>2023-11-29 11:35:27 +0100
commit1fe7ba57c868fca92deb8ed0e582858dbc5fe50d (patch)
tree7042104013b5602f27aad671867bf3273ca7b4d9 /core
parent6e3781b48632cdbe346a3d8627c54375b7265e3e (diff)
downloadnextcloud-server-1fe7ba57c868fca92deb8ed0e582858dbc5fe50d.tar.gz
nextcloud-server-1fe7ba57c868fca92deb8ed0e582858dbc5fe50d.zip
Improve accesibility for search tags/chips
- Use stand font of filter tags/chips - No bold - Use close icon and no close thick Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
Diffstat (limited to 'core')
-rw-r--r--core/src/components/GlobalSearch/SearchFilterChip.vue18
1 files changed, 11 insertions, 7 deletions
diff --git a/core/src/components/GlobalSearch/SearchFilterChip.vue b/core/src/components/GlobalSearch/SearchFilterChip.vue
index 08e0dedfe14..8342e9e256d 100644
--- a/core/src/components/GlobalSearch/SearchFilterChip.vue
+++ b/core/src/components/GlobalSearch/SearchFilterChip.vue
@@ -6,13 +6,13 @@
</span>
<span class="text">{{ text }}</span>
<span class="close-icon" @click="deleteChip">
- <CloseIcon :size="16" />
+ <CloseIcon :size="18" />
</span>
</div>
</template>
<script>
-import CloseIcon from 'vue-material-design-icons/CloseThick.vue'
+import CloseIcon from 'vue-material-design-icons/Close.vue'
export default {
name: 'SearchFilterChip',
@@ -20,8 +20,14 @@ export default {
CloseIcon,
},
props: {
- text: String,
- pretext: String,
+ text: {
+ type: String,
+ required: true,
+ },
+ pretext: {
+ type: String,
+ required: true,
+ },
},
methods: {
deleteChip() {
@@ -40,8 +46,6 @@ export default {
border-radius: 20px;
background-color: var(--color-primary-element-light);
margin: 2px;
- font-size: 10px;
- font-weight: bolder;
.icon {
display: flex;
@@ -61,7 +65,7 @@ export default {
}
.close-icon {
- cursor: pointer;
+ cursor: pointer ;
:hover {
filter: invert(20%);