DropdownMenu cascading submenu arrow color changed to Grays/Gray-4 (WEB-1183)
Version: 0.6.8 ยท Type: ๐ Bug Fix
Problemโ
In the cascading submenu, the indicator arrow on a menu item that opens a sub-menu (e.g. "More Options") needs to match the design spec. WEB-1129 already switched the arrow icon to icon_list_chevron_right (ListChevronRightIcon), but at that time its color was unified to Labels/Primary (same as the leading icons). The design spec requires the arrow color to be labels-gray4 (the actual token is Grays/Gray-4), decoupled from the leading-icon color.
Changed Filesโ
packages/design/src/components/DropdownMenu/styles.tspackages/design/src/components/DropdownMenu/DropdownMenu.tsxpackages/design/src/components/DropdownMenu/DropdownMenuDesignSpec.mdpackages/design/src/components/DropdownMenu/__tests__/DropdownMenu.test.tsx
Changesโ
- Added
DROPDOWN_SUB_ARROW_COLOR_CLASS = 'text-(--Grays-Gray-4)'inDropdownMenu/styles.ts, splitting the cascading arrow color out of the sharedDROPDOWN_ICON_COLOR_CLASS(Labels/Primary). DropdownMenuSubTrigger'sListChevronRightIconnow usesDROPDOWN_SUB_ARROW_COLOR_CLASS; the leading-icon container still usesLabels/Primary.- Updated the DesignSpec and the unit test assertion (
text-(--Grays-Gray-4)).