From d47d1c0d6a598bfa4420045df9501495c84440bf Mon Sep 17 00:00:00 2001 From: Olga Bulat Date: Mon, 1 Apr 2024 18:55:55 +0300 Subject: [PATCH] VTag improvements (#3975) * VTag improvements Co-authored-by: FelixSjogren FEAT - Add lot for the content instead of a prop (#2) Closes #2 Co-authored-by: Stagge TEST - Add tests for VTag (#7) Added tests for Vtag, tests include: All props are sent to VButton VTag renders slot content Renders anchor tag. Co-authored-by: Stagge FEAT - Ensure inner VButton emits and handles events in VTag #4 Closes #4 Added accessibility label (#10) - Added aria-label to indicate that that the link is a tag Improvements from review lint Signed-off-by: Olga Bulat * Update unit tests Signed-off-by: Olga Bulat --------- Signed-off-by: Olga Bulat Co-authored-by: Stagge --- .../src/components/VMediaInfo/VMediaTags.vue | 2 +- frontend/src/components/VTag/VTag.vue | 11 +++---- .../unit/specs/components/VTag/v-tag.spec.js | 31 +++++++++++++++++++ 3 files changed, 36 insertions(+), 8 deletions(-) create mode 100644 frontend/test/unit/specs/components/VTag/v-tag.spec.js diff --git a/frontend/src/components/VMediaInfo/VMediaTags.vue b/frontend/src/components/VMediaInfo/VMediaTags.vue index 30e8b41c7b3..e680f4431f0 100644 --- a/frontend/src/components/VMediaInfo/VMediaTags.vue +++ b/frontend/src/components/VMediaInfo/VMediaTags.vue @@ -7,7 +7,7 @@ :class="heightClass" >
  • - + {{ tag }}
  • {{ title }} + v-bind="$props" + v-on="$listeners" + >