@trebired/frontend 13.37.0 → 13.37.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 +4 -0
- package/dist/styles/utils/text/core.scss +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 13.37.1
|
|
4
|
+
|
|
5
|
+
- Fixed `text-outline` rendering nothing when `components.typography.outline.color` is left unset. The stroke colour defaulted to `currentColor`, but the same rule sets `color` to the transparent interior fill, and `currentcolor` resolves against the element's own computed `color` — so the stroke was transparent too and the text disappeared. The default is now the `text` semantic token.
|
|
6
|
+
|
|
3
7
|
## 13.37.0
|
|
4
8
|
|
|
5
9
|
- Added the `text-outline` utility: text drawn as an outline, with the glyph interiors letting the background through. Sites were hand-rolling this with `-webkit-text-stroke` plus a `paint-order` guard and their own fallback, which is easy to get wrong \u2014 without `paint-order: stroke fill` the stroke is painted centred on the glyph edge and eats half the letterform.
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
color: var(#{ns.css-var("typography-outline-fill")}, transparent);
|
|
59
59
|
-webkit-text-stroke:
|
|
60
60
|
var(#{ns.css-var("typography-outline-width")}, 2px)
|
|
61
|
-
var(#{ns.css-var("typography-outline-color")},
|
|
61
|
+
var(#{ns.css-var("typography-outline-color")}, var(#{ns.css-var("text")}, #000));
|
|
62
62
|
paint-order: stroke fill;
|
|
63
63
|
}
|
|
64
64
|
}
|
package/package.json
CHANGED