@scalewing/react 1.6.0 → 1.6.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 CHANGED
@@ -1,5 +1,16 @@
1
1
  # @scalewing/react
2
2
 
3
+ ## 1.6.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 22ae9c2: `TableCell numeric` and `TableCell align="end"` cells now line up at the end of
8
+ the cell again. The base `.sw-table th, .sw-table td { text-align: start }` rule
9
+ was more specific than `.sw-table-numeric` and `.sw-table-end`, so those cells
10
+ had been aligned to the start since the table styles were added. The alignment
11
+ rules are now `.sw-table .sw-table-numeric` and `.sw-table .sw-table-end`. No
12
+ prop changes.
13
+
3
14
  ## 1.6.0
4
15
 
5
16
  ### Minor Changes
@@ -166,11 +166,12 @@ export function cssDataClasses() {
166
166
  line-height: ${caption.lineHeight}px;
167
167
  }
168
168
 
169
- .sw-table-end {
169
+ /* Descendant form outranks .sw-table th / .sw-table td, which set text-align: start. */
170
+ .sw-table .sw-table-end {
170
171
  text-align: end;
171
172
  }
172
173
 
173
- .sw-table-numeric {
174
+ .sw-table .sw-table-numeric {
174
175
  font-variant-numeric: tabular-nums;
175
176
  text-align: end;
176
177
  }
package/dist/styles.css CHANGED
@@ -1187,11 +1187,12 @@ body {
1187
1187
  line-height: 18px;
1188
1188
  }
1189
1189
 
1190
- .sw-table-end {
1190
+ /* Descendant form outranks .sw-table th / .sw-table td, which set text-align: start. */
1191
+ .sw-table .sw-table-end {
1191
1192
  text-align: end;
1192
1193
  }
1193
1194
 
1194
- .sw-table-numeric {
1195
+ .sw-table .sw-table-numeric {
1195
1196
  font-variant-numeric: tabular-nums;
1196
1197
  text-align: end;
1197
1198
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scalewing/react",
3
- "version": "1.6.0",
3
+ "version": "1.6.1",
4
4
  "description": "Scalewing DOM components and package-owned CSS utilities.",
5
5
  "type": "module",
6
6
  "license": "MIT",