Skip to content

Commit 74c6381

Browse files
committed
Update component styles in tests: adjust font-weight for buttons in light and dark themes
1 parent 89a0f69 commit 74c6381

File tree

1 file changed

+3
-3
lines changed
  • packages/core/tests/config/styles

1 file changed

+3
-3
lines changed

packages/core/tests/config/styles/test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,23 @@ import { expectLayers } from '../../test'
66
test.concurrent('components', () => {
77
expectLayers(
88
{
9-
components: '.btn{font-size:0.875rem;height:2.5rem;text-align:center}.light .btn{background-color:rgb(0 0 0);color:rgb(255 255 255);font-weight:600}.dark .btn{background-color:rgb(255 255 255);color:rgb(255 255 255);font-weight:500}'
9+
components: '.btn{font-size:0.875rem;height:2.5rem;text-align:center}.light .btn{background-color:rgb(0 0 0);color:rgb(255 255 255);font-weight:500}.dark .btn{background-color:rgb(255 255 255);color:rgb(255 255 255);font-weight:500}'
1010
},
1111
'btn',
1212
config
1313
)
1414

1515
expectLayers(
1616
{
17-
components: '.blue-btn{font-size:0.875rem;height:2.5rem;text-align:center}.light .blue-btn{background-color:rgb(0 0 0);color:rgb(255 255 255);font-weight:600;font-size:1.25rem}.dark .blue-btn{background-color:rgb(255 255 255);color:rgb(255 255 255);font-weight:500}'
17+
components: '.blue-btn{font-size:0.875rem;height:2.5rem;text-align:center}.light .blue-btn{background-color:rgb(0 0 0);color:rgb(255 255 255);font-weight:500;font-size:1.25rem}.dark .blue-btn{background-color:rgb(255 255 255);color:rgb(255 255 255);font-weight:500}'
1818
},
1919
'blue-btn',
2020
config
2121
)
2222

2323
expectLayers(
2424
{
25-
components: '.blue-btn{font-size:0.875rem!important;height:2.5rem!important;text-align:center!important}.light .blue-btn{background-color:rgb(0 0 0)!important;color:rgb(255 255 255)!important;font-weight:600!important;font-size:1.25rem!important}.dark .blue-btn{background-color:rgb(255 255 255)!important;color:rgb(255 255 255)!important;font-weight:500!important}'
25+
components: '.blue-btn{font-size:0.875rem!important;height:2.5rem!important;text-align:center!important}.light .blue-btn{background-color:rgb(0 0 0)!important;color:rgb(255 255 255)!important;font-weight:500!important;font-size:1.25rem!important}.dark .blue-btn{background-color:rgb(255 255 255)!important;color:rgb(255 255 255)!important;font-weight:500!important}'
2626
},
2727
'blue-btn',
2828
extend(config, { important: true })

0 commit comments

Comments
 (0)