Add secondary variant for control buttons

This commit is contained in:
Mike Tasset
2025-07-29 23:17:53 +02:00
parent 50480e3488
commit 42cb1c35e0
2 changed files with 7 additions and 1 deletions
@@ -4,7 +4,9 @@
:class="
active
? 'bg-info-lighter text-primary-focus dark:text-foreground-on-primary'
: 'bg-foundation text-foreground md:hover:bg-primary-muted md:focus-visible:border-foundation'
: `bg-foundation ${
secondary ? 'text-foreground-3' : 'text-foreground'
} md:hover:bg-primary-muted md:focus-visible:border-foundation`
"
>
<component :is="icon" v-if="icon" class="size-5" />
@@ -16,5 +18,6 @@
defineProps<{
active?: boolean
icon?: string
secondary?: boolean
}>()
</script>
@@ -67,17 +67,20 @@
"
:active="activePanel === 'devMode'"
:icon="'IconViewerDev'"
secondary
@click="toggleActivePanel('devMode')"
/>
<ViewerControlsButtonToggle
v-tippy="getTooltipProps('Documentation', { placement: 'right' })"
:icon="'IconDocs'"
secondary
@click="openDocs"
/>
<!-- TODO: Add intercom click event -->
<ViewerControlsButtonToggle
v-tippy="getTooltipProps('Get help', { placement: 'right' })"
:icon="'IconIntercom'"
secondary
/>
</div>
</div>