@workday/canvas-kit-docs 16.0.0-alpha.0475-next.0 → 16.0.0-alpha.0476-next.0
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.
|
@@ -444,20 +444,21 @@ If you customize `brand.success.base` in your theme, please verify the following
|
|
|
444
444
|
`padding.xs`/`padding.xs`/`padding.xs`/`padding.sm` (8px top/right/bottom, 12px left).
|
|
445
445
|
- Item border radius updated from `shape.xxl` (24px) to `shape.lg` (12px).
|
|
446
446
|
- Text color updated from `system.color.fg.default` to `system.color.fg.strong`.
|
|
447
|
+
- Icon size updated to `md` (20px / 1.25rem).
|
|
447
448
|
|
|
448
449
|
#### Menu icon sizing
|
|
449
450
|
|
|
450
451
|
Menu icons are now smaller to align with Sana Canvas specs. In v15, `Menu.Item.Icon` did not set a
|
|
451
452
|
`size` prop and fell back to the `SystemIcon` default of `lg` (24px / 1.5rem). In v16, all icons
|
|
452
|
-
rendered through `Menu.Item.Icon` and `Menu.Option.Icon` use `size="
|
|
453
|
+
rendered through `Menu.Item.Icon` and `Menu.Option.Icon` use `size="md"` (20px / 1.25rem).
|
|
453
454
|
|
|
454
455
|
The selected checkmark in `Menu.Option` now uses `checkIcon` at `size="xs"` instead of
|
|
455
456
|
`checkSmallIcon` at the previous 24px default. The nested submenu chevron in `Submenu.TargetItem`
|
|
456
|
-
also changed from `chevronRightSmallIcon` to `chevronRightIcon` at `size="
|
|
457
|
+
also changed from `chevronRightSmallIcon` to `chevronRightIcon` at `size="md"`.
|
|
457
458
|
|
|
458
459
|
Passing a custom `size` to `Menu.Item.Icon` or `Menu.Option.Icon` will still override the default.
|
|
459
460
|
`Select` and `Combobox` menus inherit the `Menu.Option` checkmark change. If you are rendering
|
|
460
|
-
custom chevron or checkmark icons inside of menu items, update them to `size="
|
|
461
|
+
custom chevron or checkmark icons inside of menu items, update them to `size="md"` and swap
|
|
461
462
|
`*SmallIcon` assets for their standard equivalents where appropriate.
|
|
462
463
|
|
|
463
464
|
**Menu.Group.Heading**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workday/canvas-kit-docs",
|
|
3
|
-
"version": "16.0.0-alpha.
|
|
3
|
+
"version": "16.0.0-alpha.0476-next.0",
|
|
4
4
|
"description": "Documentation components of Canvas Kit components",
|
|
5
5
|
"author": "Workday, Inc. (https://www.workday.com)",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -47,10 +47,10 @@
|
|
|
47
47
|
"@stackblitz/sdk": "^1.11.0",
|
|
48
48
|
"@storybook/csf": "0.0.1",
|
|
49
49
|
"@workday/canvas-expressive-icons-web": "1.0.2",
|
|
50
|
-
"@workday/canvas-kit-labs-react": "^16.0.0-alpha.
|
|
51
|
-
"@workday/canvas-kit-preview-react": "^16.0.0-alpha.
|
|
52
|
-
"@workday/canvas-kit-react": "^16.0.0-alpha.
|
|
53
|
-
"@workday/canvas-kit-styling": "^16.0.0-alpha.
|
|
50
|
+
"@workday/canvas-kit-labs-react": "^16.0.0-alpha.0476-next.0",
|
|
51
|
+
"@workday/canvas-kit-preview-react": "^16.0.0-alpha.0476-next.0",
|
|
52
|
+
"@workday/canvas-kit-react": "^16.0.0-alpha.0476-next.0",
|
|
53
|
+
"@workday/canvas-kit-styling": "^16.0.0-alpha.0476-next.0",
|
|
54
54
|
"@workday/canvas-system-icons-web": "4.0.4",
|
|
55
55
|
"@workday/canvas-tokens-web": "4.4.0-beta.6",
|
|
56
56
|
"markdown-to-jsx": "^7.2.0",
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"mkdirp": "^1.0.3",
|
|
64
64
|
"typescript": "5.0"
|
|
65
65
|
},
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "2d96fab9d2a9a47e06b99ae59e5f939799efa76d"
|
|
67
67
|
}
|