Skip to content

Commit 5bc8cd8

Browse files
committed
feat(QBtn): Allow setting only text-color prop
1 parent c5f8176 commit 5bc8cd8

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

dev/components/components/button.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@
5050
<q-btn fab color="primary" icon="android" />
5151
<q-btn fab-mini color="primary" icon="android" />
5252
</p>
53+
54+
<br><br>
55+
<q-btn color="amber" text-color="black" icon="map" label="Some label" />
56+
<q-btn text-color="amber" icon="map" label="Some label" />
57+
5358
<p class="caption">Regular (rectangle) and Circular</p>
5459
<q-btn color="primary">Some very, but very long button title that should wrap to the next line without any problems</q-btn>
5560
<p class="group">

src/components/btn/btn-mixin.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ export default {
9999
cls.push(`text-${this.textColor || 'white'}`)
100100
}
101101
}
102+
else if (this.textColor) {
103+
cls.push(`text-${this.textColor}`)
104+
}
102105

103106
cls.push({
104107
'q-btn-no-uppercase': this.noCaps,

0 commit comments

Comments
 (0)