Dropdown Menu
@nordcom/nordstar-dropdown-menuv0.2.03 releases0.2.0
PatchElevate the Nordstar visual language with a shared depth and motion system, then apply it across the components.
- New design tokens shipped from
@nordcom/nordstar's CSS contract: - Elevation —
shadow-raised,shadow-overlay,shadow-floating, a three-step shadow scale tuned to read on the near-black default surface. - Easing —
ease-out-soft(hard deceleration for entrances) andease-spring(a slight overshoot for toggles and presses). - Motion — an
overlay-inkeyframe /animate-overlay-inutility used by portalled surfaces, plusaccordion-down/accordion-upfor disclosure height transitions. The existingprefers-reduced-motionreset neutralises them for users who opt out. - Overlay surfaces (
Select,DropdownMenu,Tooltip) now lift on the newshadow-overlay, animate in from their transform origin, and round tomd. TheSelectchevron rotates while the listbox is open. - `Button` gains a resting elevation on the solid variant, a subtle hover lift that settles on press, and a consistent keyboard focus ring.
- `Card` solid surfaces read as raised via
shadow-raised. - `Switch` thumb slides on the springy easing with a touch of depth.
- `Kbd` picks up a recessed keycap shadow.
- `Accordion` sections now expand and collapse with a measured height animation instead of snapping open.
- Motion timings across
Input,Select, and the dropdown items were aligned to the shared duration/easing language.
No public APIs changed; these are visual and motion refinements within the existing design identity.
1 dependency update- @nordcom/nordstar-system@0.2.0
- New design tokens shipped from
0.1.1
Maintenance1 dependency update- @nordcom/nordstar-system@0.1.1
0.1.0
PatchAdd
<DropdownMenu/>, a compound action menu built on@radix-ui/react-dropdown-menu(Trigger,Content,Item,CheckboxItem,RadioGroup,RadioItem,Label,Separator,Group,Sub,SubTrigger,SubContent). It ships the full menu role, roving focus, typeahead, and keyboard/pointer dismissal, with check/dot/chevron indicators inlined (no icon dependency) and the surface re-fitted to the Nordstar token contract.1 dependency update- @nordcom/nordstar-system@0.1.0