feat(#3569): fix the PushDrawer open prop so the docs site works#3542
Conversation
✅ Deploy Preview for goa-design-2 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
bdfranck
left a comment
There was a problem hiding this comment.
I tested the changes...
React Testing Playground
When I set pushDrawerOpen to true,
And I reload the browser,
I can see that the Push Drawer is open on load.
When I set pushDrawerOpen to false,
And I reload the browser,
I can see that the Push Drawer is closed on load.
Docs
When I navigate to the Push Drawer page,
The example drawer is closed on load.
Looks good to me! 👍
|
🎉 This PR is included in version 6.11.0-dev.12 🎉 The release is available on: Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version 1.41.0-dev.16 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Co-authored-by: bdfranck <1479091+bdfranck@users.noreply.github.com> Co-authored-by: Vanessa Tran <vanessa.m.tran@gov.ab.ca> Co-authored-by: GitHub Copilot <copilot@github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Benji Franck <benjamin.franck@gmail.com> Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: Thomas Jeffery <thomaswjeffery@gmail.com> Co-authored-by: Eric Hoff <eric@highfructose.ca> Co-authored-by: Dustin Nielsen <nielsen.dustin@gmail.com> Co-authored-by: Thomas Jeffery <82968683+twjeffery@users.noreply.github.com> Co-authored-by: mxsoco <miguel.soco@gov.ab.ca> fix(#3399): correct V2 checkbox spacing behavior fix(#3493): show tooltip on hover for Work Side Menu Group fix(#3455,#3450): Updated top and bottom positioning for Popover fix(#3273): keep Side Menu Group open Closes #2893 fix the PushDrawer open prop so the docs site works (#3542) fix: use Node 22 for Netlify deploys (#3543) fix(#3397): use existing design tokens in Astro docs (#3515) fix(#3581): use dynamic content collection for nav instead of hardcoded list Closes #3581 fix(#3498): modified padding and border on radio group. fix(#3497): fixed how the Angular Calendar and DatePicker components pass Dates to the Svelte Calendar component fix(#3497): remove build dependency on tests using library code fix(#3607): update the interaction area to just around the checkbox or radio input and label fix(#3505): Fix icon click and focus on Link fix(#3673): docs site bug sweep - push drawer filters, side menu, multi-sort, responsive grids Fixes workaround (chevrons hidden after #3595) fix(#3540): add manual positioning to Popover when the browser does not support CSS anchor positioning fix(#3614): add padding for all IconSizes fix(#3411): audit and improve all component configuration examples fix(#3685): adjust width of "reveal" slot for checkbox and radio buttons fix(#3685): remove width calculation from Radio Item
|
🎉 This PR is included in version 2.0.0-next.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version 2.0.0-next.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version 7.0.0-next.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version 5.0.0-next.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version 2.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version 7.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version 5.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This fixes how the
PushDraweropen prop is propagated. This could be a bigger bug, but the main reason for this PR is that the Code Sandbox for the v1 docs will keep theopenprop on the base control, which Svelte interprets as a "true".This copies what the
GoabDrawerdoes., and the PushDrawer'sheadingattribute.Before (the change)
The Push Drawer on the docs site is always open.
After (the change)
The Push Drawer on the docs site opens and closes with the controls and functions properly.
Make sure that you've checked the boxes below before you submit the PR
Steps needed to test
Most obviously, the http://localhost:4201/features/2469 tests still work.
To test the Docs site:
Build this branch
Run the following commands:
npm inpm run build:prodcd dist/libs/react-componentsnpm packPull the
eric/2469-push-drawer-docsbranch: GovAlta/ui-components-docs#471package.json"@abgov/react-components": "6.11.0",with"@abgov/react-components": "../ui-components/dist/libs/react-components/abgov-react-components-0.0.1.tgz",npm iThen go to
http://localhost:5173/components/push-drawer#code-playground.