@scalewing/react 1.62.0 → 1.62.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/css/css-fixture-card.js +12 -0
- package/dist/styles.css +4 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @scalewing/react
|
|
2
2
|
|
|
3
|
+
## 1.62.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 1b9b367: `FixtureCard`'s enabled score boxes take the page's background, so an empty box stays visible on a tinted dark `Card` (FutMas F-010). `FixtureRow`'s boxes are unchanged.
|
|
8
|
+
|
|
3
9
|
## 1.62.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
|
@@ -66,6 +66,16 @@ function cardRules() {
|
|
|
66
66
|
overflow-wrap: anywhere;
|
|
67
67
|
}`;
|
|
68
68
|
}
|
|
69
|
+
/*
|
|
70
|
+
* A box on the Card's surface would share its fill in a tinted dark palette
|
|
71
|
+
* and nearly vanish while empty, so it takes the page's. A disabled box keeps
|
|
72
|
+
* the canvas's disabled look.
|
|
73
|
+
*/
|
|
74
|
+
function boxRules() {
|
|
75
|
+
return `[data-theme] .sw-fixture-card input.sw-fixture-score-box:not(:disabled) {
|
|
76
|
+
background: var(--sw-color-background);
|
|
77
|
+
}`;
|
|
78
|
+
}
|
|
69
79
|
/*
|
|
70
80
|
* The score's message is a live region, so it stays in place while empty; a
|
|
71
81
|
* block with no words has no height, and its margin comes only with words.
|
|
@@ -100,6 +110,8 @@ function belowRules() {
|
|
|
100
110
|
export function cssFixtureCardClasses() {
|
|
101
111
|
return `${cardRules()}
|
|
102
112
|
|
|
113
|
+
${boxRules()}
|
|
114
|
+
|
|
103
115
|
${belowRules()}`;
|
|
104
116
|
}
|
|
105
117
|
export function fixtureCardClassCatalog() {
|
package/dist/styles.css
CHANGED
|
@@ -3795,6 +3795,10 @@ button.sw-date-toggle-day[aria-disabled='true'] {
|
|
|
3795
3795
|
overflow-wrap: anywhere;
|
|
3796
3796
|
}
|
|
3797
3797
|
|
|
3798
|
+
[data-theme] .sw-fixture-card input.sw-fixture-score-box:not(:disabled) {
|
|
3799
|
+
background: var(--sw-color-background);
|
|
3800
|
+
}
|
|
3801
|
+
|
|
3798
3802
|
.sw-fixture-card-error {
|
|
3799
3803
|
color: var(--sw-color-danger);
|
|
3800
3804
|
display: block;
|