@microbit/ui 0.1.0-alpha.19 → 0.1.0-alpha.20
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/ProgressBar.tsx +1 -1
- package/src/Slider.recipe.ts +2 -1
- package/src/base-preset.ts +7 -9
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.20",
|
|
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/ProgressBar.tsx
CHANGED
package/src/Slider.recipe.ts
CHANGED
package/src/base-preset.ts
CHANGED
|
@@ -179,15 +179,13 @@ export const basePreset = definePreset({
|
|
|
179
179
|
},
|
|
180
180
|
semanticTokens: {
|
|
181
181
|
colors: {
|
|
182
|
-
// Checked/focus states of form controls
|
|
183
|
-
//
|
|
184
|
-
//
|
|
185
|
-
//
|
|
186
|
-
controlCheckedBg: { value: "{colors.
|
|
187
|
-
controlCheckedHoverBg: { value: "{colors.
|
|
188
|
-
focusBorder: { value: "{colors.
|
|
189
|
-
sliderFilledTrack: { value: "{colors.blue.500}" },
|
|
190
|
-
progressFilledTrack: { value: "{colors.blue.500}" },
|
|
182
|
+
// Checked/focus states of form controls: Checkbox/Switch/Radio
|
|
183
|
+
// checked backgrounds and the Input/Select focus border. Semantic
|
|
184
|
+
// so a brand can diverge them from its ramp — e.g. a light
|
|
185
|
+
// brand.500 needing a darker 3:1 focus border.
|
|
186
|
+
controlCheckedBg: { value: "{colors.brand.500}" },
|
|
187
|
+
controlCheckedHoverBg: { value: "{colors.brand.600}" },
|
|
188
|
+
focusBorder: { value: "{colors.brand.500}" },
|
|
191
189
|
// Error/destructive ramp (Chakra red). Destructive button variants,
|
|
192
190
|
// field error states and the error toast; the record* button
|
|
193
191
|
// variants deliberately stay on red.* (recording vocabulary, not
|