@microbit/ui 0.1.0-alpha.13 → 0.1.0-alpha.14
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/package.json +1 -1
- package/src/Button.recipe.ts +8 -4
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.14",
|
|
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/Button.recipe.ts
CHANGED
|
@@ -120,13 +120,17 @@ export const button = defineRecipe({
|
|
|
120
120
|
_hover: { bg: "brand.600", _disabled: { bg: "brand.500" } },
|
|
121
121
|
_active: { bg: "brand.700" },
|
|
122
122
|
},
|
|
123
|
+
// 600/700, matching what python-editor's Chakra outline + red
|
|
124
|
+
// colorScheme resolved to. (Extracted from ml-trainer at 500/600, but
|
|
125
|
+
// its one warning button tolerates the darkening; python-editor's
|
|
126
|
+
// "Reset project" was visibly lighter than its Chakra self.)
|
|
123
127
|
warning: {
|
|
124
128
|
borderWidth: "2px",
|
|
125
|
-
borderColor: "danger.
|
|
126
|
-
color: "danger.
|
|
129
|
+
borderColor: "danger.600",
|
|
130
|
+
color: "danger.600",
|
|
127
131
|
bg: "transparent",
|
|
128
|
-
_hover: { borderColor: "danger.
|
|
129
|
-
_active: { bg: "danger.50"
|
|
132
|
+
_hover: { borderColor: "danger.700", color: "danger.700" },
|
|
133
|
+
_active: { bg: "danger.50" },
|
|
130
134
|
},
|
|
131
135
|
// Chakra's built-in solid + red colorScheme (destructive confirm
|
|
132
136
|
// buttons). Same values as `record` today, but a separate variant so
|