-
Notifications
You must be signed in to change notification settings - Fork 259
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#527 reset CardTopicSelection functionalithy - ready for a11y work
- Loading branch information
1 parent
94735a0
commit cb57435
Showing
6 changed files
with
243 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,32 @@ | ||
<template> | ||
<div | ||
class="flex items-center justify-between pl-2 pr-3 border rounded-full w-max h-max hover:cursor-pointer style-cta elem-shadow-sm" | ||
class="flex items-center justify-between border w-max h-max cursor-pointer style-cta elem-shadow-sm space-x-2" | ||
:class="{ | ||
'style-cta': active, | ||
'style-cta-secondary': !active, | ||
'pl-2 pr-3 rounded-full': !isSelector, | ||
'py-1 sm:py-0 rounded-lg pl-4 pr-5 sm:pl-2 sm:pr-3': isSelector, | ||
}" | ||
> | ||
<Icon | ||
class="flex-shrink-0 w-5 h-5 my-1 rounded-full" | ||
name="bi:globe" | ||
size="1em" | ||
/> | ||
<p class="pl-2 text-base font-bold text-center select-none"> | ||
{{ topic }} | ||
</p> | ||
<div class="flex items-center" :class="{ 'max-sm:flex-grow': isSelector }"> | ||
<Icon class="flex-shrink-0 w-5 h-5 my-1" name="bi:globe" size="1em" /> | ||
<p class="pl-2 text-base font-bold text-center select-none"> | ||
{{ $t(topic) }} | ||
</p> | ||
</div> | ||
<Icon v-if="active && isSelector" name="bi:x-lg" size="20" /> | ||
</div> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
defineProps<{ | ||
export interface Props { | ||
topic: string; | ||
}>(); | ||
active?: boolean; | ||
isSelector?: boolean; | ||
} | ||
withDefaults(defineProps<Props>(), { | ||
active: true, | ||
isSelector: false, | ||
}); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.