Skip to content

Commit 99279d9

Browse files
committed
fix(VEmptyState): support VBtn variants when using actions slot
1 parent bc98d54 commit 99279d9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/vuetify/src/components/VEmptyState/VEmptyState.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ export const VEmptyState = genericComponent<VEmptyStateSlots>()({
184184
defaults={{
185185
VBtn: {
186186
class: 'v-empty-state__action-btn',
187-
color: props.color,
187+
color: props.color ?? 'surface-variant',
188188
text: props.actionText,
189189
},
190190
}}

packages/vuetify/src/components/VEmptyState/_variables.scss

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
@use '../../styles/settings';
22
@use "../../styles/tools/functions";
33

4-
$empty-state-actions-btn-background-color: rgb(var(--v-theme-surface-variant)) !default;
5-
$empty-state-actions-btn-color: rgb(var(--v-theme-on-surface-variant)) !default;
4+
$empty-state-actions-btn-background-color: initial !default;
5+
$empty-state-actions-btn-color: initial !default;
66
$empty-state-actions-gap: 8px !default;
77
$empty-state-actions-padding: 16px !default;
88
$empty-state-content-padding: 24px 0 !default;

0 commit comments

Comments
 (0)