@microbit/ui 0.1.0-alpha.23 → 0.1.0-alpha.24
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/README.md +11 -0
- package/package.json +1 -1
- package/src/base-preset.ts +2 -1
package/README.md
CHANGED
|
@@ -92,6 +92,17 @@ node_modules/@microbit/ui/lang/ui.fr.json --ast --out-file ...` (multiple
|
|
|
92
92
|
the tree (e.g. the Android hardware back button).
|
|
93
93
|
7. **`ToastProvider`** once near the root, inside the two providers above.
|
|
94
94
|
|
|
95
|
+
## Upgrading in an app
|
|
96
|
+
|
|
97
|
+
After bumping the `@microbit/ui` version:
|
|
98
|
+
|
|
99
|
+
1. `npm install` — the apps' postinstall runs `panda codegen`, but incremental
|
|
100
|
+
codegen does not detect external preset changes, so regenerate clean:
|
|
101
|
+
`rm -rf styled-system && npm run panda`.
|
|
102
|
+
2. `npm run i18n:compile` — recompiles the app's per-locale catalogs so new
|
|
103
|
+
and retranslated `ui.*` strings ship (otherwise they fall back to English,
|
|
104
|
+
or stay missing).
|
|
105
|
+
|
|
95
106
|
## Legacy browser support (Safari < 15) — temporary
|
|
96
107
|
|
|
97
108
|
Panda's output uses two things Safari below 15 mishandles. If an app must
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microbit/ui",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.24",
|
|
4
4
|
"description": "micro:bit design-system primitives: react-aria-components + Panda CSS with a design language ported from Chakra UI v2. Ships as source; see README for the consumption setup.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
package/src/base-preset.ts
CHANGED
|
@@ -288,7 +288,8 @@ export const basePreset = definePreset({
|
|
|
288
288
|
touchAction: "manipulation",
|
|
289
289
|
},
|
|
290
290
|
body: {
|
|
291
|
-
position:
|
|
291
|
+
// No `position: relative` (Chakra had it): it breaks react-aria's
|
|
292
|
+
// overlay positioning — see Tooltip's "In a scrolling page" story.
|
|
292
293
|
minHeight: "100%",
|
|
293
294
|
fontFeatureSettings: '"kern"',
|
|
294
295
|
fontFamily: "body",
|