mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-02 03:57:52 +00:00
# Pull Request Template ## Description Fixes https://linear.app/chatwoot/issue/CW-4091/accessibility-improvement-support-bigger-font-size-for-the-dashboard ## Type of change - [x] New feature (non-breaking change which adds functionality) ## How Has This Been Tested? ### **Loom video** https://www.loom.com/share/1ab781859fa748a5ad54aacbacd127b4?sid=a7dd9164-a6de-462f-bff7-1b25e9c55b4f ## Checklist: - [x] My code follows the style guidelines of this project - [x] I have performed a self-review of my code - [x] I have commented on my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [x] I have added tests that prove my fix is effective or that my feature works - [x] New and existing unit tests pass locally with my changes - [ ] Any dependent changes have been merged and published in downstream modules
53 lines
1.3 KiB
Vue
53 lines
1.3 KiB
Vue
<script setup>
|
|
import Button from 'dashboard/components-next/button/Button.vue';
|
|
|
|
defineProps({
|
|
headerTitle: {
|
|
type: String,
|
|
default: '',
|
|
},
|
|
buttonLabel: {
|
|
type: String,
|
|
default: '',
|
|
},
|
|
});
|
|
|
|
const emit = defineEmits(['click', 'close']);
|
|
|
|
const handleButtonClick = () => {
|
|
emit('click');
|
|
};
|
|
</script>
|
|
|
|
<template>
|
|
<section class="flex flex-col w-full h-full overflow-hidden bg-n-background">
|
|
<header class="sticky top-0 z-10 px-6 lg:px-0">
|
|
<div class="w-full max-w-[60rem] mx-auto">
|
|
<div class="flex items-center justify-between w-full h-20 gap-2">
|
|
<span class="text-xl font-medium text-n-slate-12">
|
|
{{ headerTitle }}
|
|
</span>
|
|
<div
|
|
v-on-clickaway="() => emit('close')"
|
|
class="relative group/campaign-button"
|
|
>
|
|
<Button
|
|
:label="buttonLabel"
|
|
icon="i-lucide-plus"
|
|
size="sm"
|
|
class="group-hover/campaign-button:brightness-110"
|
|
@click="handleButtonClick"
|
|
/>
|
|
<slot name="action" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</header>
|
|
<main class="flex-1 px-6 overflow-y-auto lg:px-0">
|
|
<div class="w-full max-w-[60rem] mx-auto py-4">
|
|
<slot name="default" />
|
|
</div>
|
|
</main>
|
|
</section>
|
|
</template>
|