-
Notifications
You must be signed in to change notification settings - Fork 73
[LG-5840] feat(collection-toolbar): CollectionToolbarActions and CollectionToolbarActionsButton components #3421
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
|
Size Change: +2.81 kB (+0.15%) Total Size: 1.83 MB
ℹ️ View Unchanged
|
✍️ Proposed changes
Adds the
CollectionToolbar.Actionscompound sub-component to theCollectionToolbar, enabling action buttons within the toolbar. Additionally, this PR also adds aCollectionToolbar.Actions.Buttonsub-component to theCollectionToolbar.Actionssub-component. This includes:CollectionToolbar.Actions- A container for toolbar action buttons with flex layout and spacingCollectionToolbar.Actions.Button- A button sub-component that inheritssizefrom the toolbar context (supports up to 2 buttons with a console warning for more)CollectionToolbarContext- Context provider to sharevariant,size, and collapse state across sub-components🎟️ Jira ticket: LG-5840
✅ Checklist
pnpm changesetand documented my changes🧪 How to test changes
pnpm installto install dependenciespnpm storybookLiveExamplestory renders the toolbar with "Default Button" and "Primary Button" action buttonsvariantcontrol tocollapsibleand confirm a chevron toggle button appearssizecontrol and verify the buttons resize accordingly