Openverse is a search engine for openly-licensed media. This monorepo includes all application code.
Updated variant name from `plain-dangerous` to `plain--avoid` (#1726)
Shreyansh Malviyac7240d938e8f
diff --git a/src/components/VAudioTrack/VPlayPause.vue b/src/components/VAudioTrack/VPlayPause.vueindex c953a1efe..a75fa0e11 100644--- a/src/components/VAudioTrack/VPlayPause.vue+++ b/src/components/VAudioTrack/VPlayPause.vue@@ -99,11 +99,11 @@ export default defineComponent({const icon = computed(() => statusIconMap[props.status])/**- * Sets the button variant to `plain-dangerous` to manually handle focus states.+ * Sets the button variant to `plain--avoid` to manually handle focus states.* Sets the connections (none-rounded corners) for the button based on the layout.*/const buttonProps = computed(() => {- const variant = 'plain-dangerous' as ButtonVariant+ const variant = 'plain--avoid' as ButtonVariantreturn { variant, connections: layoutConnectionsMap[props.layout] }})diff --git a/src/components/VButton.vue b/src/components/VButton.vueindex b859c7094..93011597d 100644--- a/src/components/VButton.vue+++ b/src/components/VButton.vue@@ -53,7 +53,7 @@ export const buttonVariants = ['action-menu-muted','action-menu-muted-pressed','plain',- 'plain-dangerous',+ 'plain--avoid','full',] as constexport type ButtonVariant = typeof buttonVariants[number]@@ -109,7 +109,7 @@ const VButton = defineComponent({* The variant of the button.** Plain removes all styles except the focus ring.- * Plain-dangerous removes _all_ styles including the focus ring.+ * Plain--avoid removes _all_ styles including the focus ring.** @default 'primary'*/@@ -203,7 +203,7 @@ const VButton = defineComponent({})const isPlainDangerous = computed(() => {- return propsRef.variant.value === 'plain-dangerous'+ return propsRef.variant.value === 'plain--avoid'})watch(diff --git a/src/components/VTabs/VTab.vue b/src/components/VTabs/VTab.vueindex 9ddfdd079..a6d46adbf 100644--- a/src/components/VTabs/VTab.vue+++ b/src/components/VTabs/VTab.vue@@ -5,7 +5,7 @@role="tab":tabindex="isSelected ? 0 : -1"size="disabled"- variant="plain-dangerous"+ variant="plain--avoid"v-bind="tabProps"class="rounded-none border-0 bg-white py-3 px-4 text-base font-semibold focus-visible:shadow-[0_0_0_1.5px_#c52b9b_inset] md:px-6":class="[$style[variant], isSelected && $style[`${variant}-selected`]]"