-
Notifications
You must be signed in to change notification settings - Fork 4
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
BBD Fractal Components #505
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @milesbigbluedoor
Good job getting your head around using our Fractal library, your new components look good!
A few issues:
Units
- Label-tag
- Please rename your new variant to just
--project
. Sorry, it seems knit-picky, but better to name it more generically for re-use in future, and better to rename now before you implement into Wordpress.
- Please rename your new variant to just
- Navigation Button
- Not needed as it's already part of SitNav component. Sorry this wasn't clear, but the new buttons we want, as new variants of the Fractal Button Unit are the prev/next buttons to be used in your Carousel component (shown under "Icons" in the designs). You can mostly copy them over from our SearchPagination component, but tweaked to match the Carousel design. Then re-use the new Button Units back in your Carousel component.
Blocks
- Carousel
- Looks good. Sorry for wasted work, but please get rid of Swiper, we're trying to keep Fractal as free of dependencies as possible, and can implement swipe gestures with much smaller vanilla JS later.
- See notes above under Navigation Button fro re-using new prev/next button variants here.
- MasterBrandNav
- This component is meant to be a much simpler thing - just the top bar, called "Global Navigation" in the designs.
For the main Nav (called "Primary Navigation" in the designs) you can re-use the SiteNav component already in Fractal (just with appropriate changes to the HTML where you implemenet it on your end, and perhaps some modifying CSS in your site).
- This component is meant to be a much simpler thing - just the top bar, called "Global Navigation" in the designs.
eslint errors
- we always get these, I'm surprised you have so few, but you can see them on your local terminal where you run the site (
npm run dev
).
I wouldn't bother you with them, but if you could resolve them please, your branch will automatically build to our QA site.
Hey @methodog thank you for the detailed feedback! I've actioned all these changes in the above commits. Please let me know if its all okay. I made the following changes:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @milesbigbluedoor
Thanks for these changes, and the clear commit messages and helpful PR comments.
Just a few niggling bits left I think - please see my comments in the code below...
Hey @methodog apologies for missing these cleanup items, these should all be resolved now |
…e support; change initial item to first instead of last; various other fixes & cleanups
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @milesbigbluedoor, i've pushed some various changes, mainly accessibility fixes. Please check my commits over - you can refer to how I've added our default focus styles when revisiting the Quicklinks block.
My code comments about responsive img tag size params are important for site optimisation, and worth mastering here as you'll need to get them right in Wordpress.
thanks @milesbigbluedoor 👍 |
Tasks:
Create new block components:
Create new button variants