Skip to content

Commit fd4343f

Browse files
committed
refactor(vue-quasar): use flat style for default-variant buttons
1 parent 7fe7a2e commit fd4343f

2 files changed

Lines changed: 7 additions & 13 deletions

File tree

packages/vue-quasar/src/components/ActionButton.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
:label="label"
44
:icon="resolvedIcon"
55
:color="isDefault ? undefined : action.config.variant"
6-
:outline="isDefault && !flat"
6+
:outline="false"
77
:unelevated="!isDefault && !flat"
8-
:flat="flat"
8+
:flat="isDefault || flat"
99
:dense="dense"
1010
:size="size"
1111
no-caps

playground/vue-quasar/src/quasar-variants.css

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,14 @@
1-
.schema-btn {
1+
.q-btn {
22
border-radius: 4px !important;
3+
color: #616161;
4+
background: #f1f1f1;
35
}
46

5-
.text-default {
6-
color: #616161 !important;
7-
}
8-
9-
.bg-default {
10-
background: #616161 !important;
11-
}
12-
13-
.text-primary {
7+
.q-btn.text-primary {
148
color: #1976d2 !important;
159
}
1610

17-
.bg-primary {
11+
.q-btn.bg-primary {
1812
background: #1976d2 !important;
1913
}
2014

0 commit comments

Comments
 (0)