Skip to content

Commit 949c0b9

Browse files
committed
refactor: use button component for modal close button
1 parent 05a4cfa commit 949c0b9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/components/Modal.client.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@ defineExpose({
3434
<h2 :id="modalTitleId" class="font-mono text-lg font-medium">
3535
{{ modalTitle }}
3636
</h2>
37-
<button
37+
<ButtonBase
3838
type="button"
3939
class="text-fg-subtle hover:text-fg transition-colors duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-fg/50 rounded"
4040
:aria-label="$t('common.close')"
4141
@click="handleModalClose"
4242
>
4343
<span class="i-carbon-close w-5 h-5" aria-hidden="true" />
44-
</button>
44+
</ButtonBase>
4545
</div>
4646
<!-- Modal body content -->
4747
<slot />

0 commit comments

Comments
 (0)