refactor: improve button component styles (#7517)

#### What type of PR is this?

/area ui
/kind improvement
/milestone 2.21.x

#### What this PR does / why we need it:

1. Add ghost variant
2. Improve icon style
3. Refactoring css using scss functions

#### Does this PR introduce a user-facing change?

```release-note
None
```
This commit is contained in:
Ryan Wang
2025-06-09 23:38:34 +08:00
committed by GitHub
parent 63d40d4d40
commit 204113bd87
33 changed files with 228 additions and 154 deletions

View File

@@ -198,14 +198,14 @@ function onCreationModalClose() {
type="default"
>
<template #icon>
<IconShieldUser class="h-full w-full" />
<IconShieldUser />
</template>
{{ $t("core.user.actions.roles") }}
</VButton>
<HasPermission :permissions="['*']">
<VButton :route="{ name: 'AuthProviders' }" size="sm" type="default">
<template #icon>
<IconLockPasswordLine class="h-full w-full" />
<IconLockPasswordLine />
</template>
{{ $t("core.user.actions.identity_authentication") }}
</VButton>
@@ -216,7 +216,7 @@ function onCreationModalClose() {
@click="creationModal = true"
>
<template #icon>
<IconAddCircle class="h-full w-full" />
<IconAddCircle />
</template>
{{ $t("core.common.buttons.new") }}
</VButton>
@@ -326,7 +326,7 @@ function onCreationModalClose() {
@click="creationModal = true"
>
<template #icon>
<IconAddCircle class="h-full w-full" />
<IconAddCircle />
</template>
{{ $t("core.common.buttons.new") }}
</VButton>