Skip to content

Commit f6bd76a

Browse files
committed
refactor: update colors
1 parent e0a12bf commit f6bd76a

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

packages/coreui-vue/src/components/widgets/CWidgetStatsA.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const CWidgetStatsA = defineComponent({
3434
CCard,
3535
{
3636
class: [
37-
{ [`bg-${props.color}`]: props.color, 'text-high-emphasis-inverse': props.color },
37+
{ [`bg-${props.color}`]: props.color, 'text-white': props.color },
3838
],
3939
},
4040
() => [

packages/coreui-vue/src/components/widgets/CWidgetStatsB.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ const CWidgetStatsB = defineComponent({
5757
{
5858
class: [
5959
{
60-
'text-high-emphasis-inverse': props.inverse,
60+
'text-white': props.inverse,
6161
},
6262
],
6363
color: props.color,
@@ -99,7 +99,7 @@ const CWidgetStatsB = defineComponent({
9999
'small',
100100
{
101101
class: [
102-
props.inverse ? 'text-medium-emphasis-inverse' : 'text-medium-emphasis',
102+
props.inverse ? 'text-white text-opacity-75' : 'text-body-secondary',
103103
],
104104
},
105105
{

packages/coreui-vue/src/components/widgets/CWidgetStatsC.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ const CWidgetStatsC = defineComponent({
7575
{
7676
class: [
7777
'text-end mb-4',
78-
props.inverse ? 'text-medium-emphasis-inverse' : 'text-medium-emphasis',
78+
props.inverse ? 'text-white text-opacity-75' : 'text-body-secondary',
7979
],
8080
},
8181
slots.icon && slots.icon(),
@@ -96,7 +96,7 @@ const CWidgetStatsC = defineComponent({
9696
{
9797
class: [
9898
'text-uppercase fw-semibold small',
99-
props.inverse ? 'text-medium-emphasis-inverse' : 'text-medium-emphasis',
99+
props.inverse ? 'text-white text-opacity-75' : 'text-body-secondary',
100100
],
101101
},
102102
{

packages/coreui-vue/src/components/widgets/CWidgetStatsD.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ const CWidgetStatsD = defineComponent({
7474
h(CCol, { class: 'fs-5 fw-semibold' }, () => value.value),
7575
h(
7676
CCol,
77-
{ class: 'text-uppercase text-medium-emphasis small' },
77+
{ class: 'text-uppercase text-body-secondary small' },
7878
() => value.title,
7979
),
8080
],

packages/coreui-vue/src/components/widgets/CWidgetStatsE.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const CWidgetStatsE = defineComponent({
3535
h(
3636
'div',
3737
{
38-
class: 'text-muted small text-uppercase font-weight-bold',
38+
class: 'text-body-secondary small text-uppercase font-weight-bold',
3939
},
4040
{
4141
default: () => (slots.title && slots.title()) || props.title,

packages/coreui-vue/src/components/widgets/CWidgetStatsF.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ const CWidgetStatsF = defineComponent({
8181
h(
8282
'div',
8383
{
84-
class: 'text-medium-emphasis text-uppercase fw-semibold small',
84+
class: 'text-body-secondary text-uppercase fw-semibold small',
8585
},
8686
{
8787
default: () => (slots.title && slots.title()) || props.title,

packages/coreui-vue/src/components/widgets/__tests__/__snapshots__/CWidgetStatsE.spec.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
exports[`Loads and display CWidgetStatsE component renders correctly 1`] = `
44
"<div class="card">
55
<div class="card-body text-center">
6-
<div class="text-muted small text-uppercase font-weight-bold">title</div>
6+
<div class="text-body-secondary small text-uppercase font-weight-bold">title</div>
77
<div class="h2 py-3">value</div>chartdefault
88
</div>
99
</div>"

0 commit comments

Comments
 (0)