feat(docs): add guided animation demo#4721
Conversation
dlabaj
left a comment
There was a problem hiding this comment.
Looks good. There seems to be a missing screenshot on surge though for the full screen demo. Just has a ? mark.
This will get fixed by wise-king-sullyman#1 |
Update animation demo tab name, add thumbnail for demo
fixed alignment issues with storage card
|
Could we also update in this pr the “interactive animations demo” link in the release highlights (located within https://www.patternfly.org/get-started/release-highlights#component-animations) so that it aligns with this pr and points to /demo instead of /react-demos? |
|
@edonehoo do you think the link should just go to the /demo page, or straight to the actual demo itself? |
|
@wise-king-sullyman hmm good question..I can see an argument either way. I'm inclined to say send them to the /demo page, just to point out its location so that they know where they can find it again and also so they can easily choose to poke around the motion docs, which were updated with this release |
Update link to animation demo is release highlights
| import pfLogo from '@patternfly/react-core/src/demos/assets/PF-HorizontalLogo-Color.svg'; | ||
| import MultiContentCard from "@patternfly/react-component-groups/dist/dynamic/MultiContentCard"; | ||
| import { ArrowRightIcon, LockIcon, PortIcon, CubeIcon, AutomationIcon, ExclamationCircleIcon, CheckCircleIcon, ExclamationTriangleIcon, HamburgerIcon, TimesIcon} from '@patternfly/react-icons'; | ||
| import { createUseStyles } from 'react-jss'; |
There was a problem hiding this comment.
is use of react-jss necessary?
Is it used anywhere in this demo
There was a problem hiding this comment.
It is used by the MultiContentCard. I'm not sure if we need it imported here. I can try removing it.
Updates per UX/Content reviews
edonehoo
left a comment
There was a problem hiding this comment.
a few content things I noticed, but outside of these it looks good
|
|
||
| ## Demo | ||
|
|
||
| Explore the current state of [PatternFly component animations](https://github.com/orgs/patternfly/projects/7/views/66). |
There was a problem hiding this comment.
| Explore the current state of [PatternFly component animations](https://github.com/orgs/patternfly/projects/7/views/66). |
Discussed with others offline that we can remove this line now
There was a problem hiding this comment.
Can you also remove the Under development alert on https://patternfly-org-pr-4721-site.surge.sh/design-foundations/motion, which carries a similar message?
|
|
||
| Explore the current state of [PatternFly component animations](https://github.com/orgs/patternfly/projects/7/views/66). | ||
|
|
||
| To see how our components can now use motion to provide clear feedback and improve usability, this demo guides you through a UI that contains a variety of motion updates, including animated alerts, icons, expansion, and more. |
There was a problem hiding this comment.
| To see how our components can now use motion to provide clear feedback and improve usability, this demo guides you through a UI that contains a variety of motion updates, including animated alerts, icons, expansion, and more. | |
| Our components can now use motion to provide clear visual feedback to users, improving engagement and usability. To see our new animations in motion, take this interactive tour, which guides you through a UI that includes animated alerts, icons, expansion, and more. |
| </Content> | ||
| ) : null} | ||
| <Content component="p"> | ||
| {`Click ${isMobile ? 'the settings button' : 'it'} to see the new ripple effect we've added to all buttons.`} |
There was a problem hiding this comment.
| {`Click ${isMobile ? 'the settings button' : 'it'} to see the new ripple effect we've added to all buttons.`} | |
| {`Click ${isMobile ? 'the settings button' : 'it'} to see the cog icon rotate, as well as our new button ripple effect.`} |
can we change the mobile message here?
| }, | ||
| { | ||
| stepId: 'navToggle', | ||
| header: <div>Buttons: Hamburger menu</div>, |
There was a problem hiding this comment.
I don't see that we have a mobile-specific message for the hamburger menu step, but we do need one since the experience is different I think
Could we add that somewhere:
Hover over the hamburger menu to see an arrow indicator appear.
Click the hamburger menu button to expand the navigation menu.
Updates based on content review
andrew-ronaldson
left a comment
There was a problem hiding this comment.
I get e-motion-al just seeing all this come together so nicely. Thanks all!
edonehoo
left a comment
There was a problem hiding this comment.
looks great, thank you!
Closes patternfly/patternfly-react#11810