mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-03-07 06:00:03 +00:00
Component: The Rest of the PrimeVue buttons (#7649)
## Summary Automated initial change, cleaned up manually. Please check the screenshot changes. Includes a11y updates to icon buttons. Doesn't hit the buttons in Desktop. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-7649-WIP-Component-The-Rest-of-the-PrimeVue-buttons-2ce6d73d365081d68e06f200f1321267) by [Unito](https://www.unito.io) --------- Co-authored-by: GitHub Action <action@github.com> Co-authored-by: github-actions <github-actions@github.com> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import type { VueWrapper } from '@vue/test-utils'
|
||||
import { mount } from '@vue/test-utils'
|
||||
import Button from 'primevue/button'
|
||||
import Button from '@/components/ui/button/Button.vue'
|
||||
import PrimeVue from 'primevue/config'
|
||||
import { beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
|
||||
|
||||
@@ -5,12 +5,12 @@
|
||||
<Button
|
||||
class="close-button absolute top-2 right-2 z-10 w-8 h-8 p-2 rounded-lg opacity-50"
|
||||
:aria-label="$t('g.close')"
|
||||
icon="icon-[lucide--x]"
|
||||
size="small"
|
||||
severity="secondary"
|
||||
text
|
||||
size="icon-sm"
|
||||
variant="muted-textonly"
|
||||
@click="closePopup"
|
||||
/>
|
||||
>
|
||||
<i class="icon-[lucide--x]" />
|
||||
</Button>
|
||||
|
||||
<!-- Modal Body -->
|
||||
<div class="modal-body flex flex-col gap-4 px-0 pt-0 pb-2 flex-1">
|
||||
@@ -38,9 +38,8 @@
|
||||
<div class="footer-actions flex items-center gap-4">
|
||||
<Button
|
||||
class="h-8"
|
||||
size="small"
|
||||
severity="secondary"
|
||||
text
|
||||
size="sm"
|
||||
variant="muted-textonly"
|
||||
@click="closePopup"
|
||||
>
|
||||
{{ $t('whatsNewPopup.later') }}
|
||||
@@ -53,10 +52,10 @@
|
||||
|
||||
<script setup lang="ts">
|
||||
import { default as DOMPurify } from 'dompurify'
|
||||
import Button from 'primevue/button'
|
||||
import { computed, onMounted, ref } from 'vue'
|
||||
import { useI18n } from 'vue-i18n'
|
||||
|
||||
import Button from '@/components/ui/button/Button.vue'
|
||||
import { useExternalLink } from '@/composables/useExternalLink'
|
||||
import { formatVersionAnchor } from '@/utils/formatUtil'
|
||||
import { renderMarkdownToHtml } from '@/utils/markdownRendererUtil'
|
||||
|
||||
Reference in New Issue
Block a user