Skip to content
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

refactor: explode ui/swiper into compossible parts #13931

Merged
merged 7 commits into from
Sep 24, 2024
Merged

refactor: explode ui/swiper into compossible parts #13931

merged 7 commits into from
Sep 24, 2024

Conversation

wackerow
Copy link
Member

Description

  • Explode ui/swiper into compossible parts
  • Improves ability to custom style swiper sub-components with tailwind classes
  • Fixes navigation/pagination styling to avoid absolute positioning, with responsive width

wrapping Swiper with SwiperContainer
migrates global.css styling into component
Copy link

netlify bot commented Sep 23, 2024

Deploy Preview for ethereumorg ready!

Name Link
🔨 Latest commit 5890726
🔍 Latest deploy log https://app.netlify.com/sites/ethereumorg/deploys/66f207362d3130000820baf3
😎 Deploy Preview https://deploy-preview-13931--ethereumorg.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
7 paths audited
Performance: 47 (🟢 up 1 from production)
Accessibility: 93 (no change from production)
Best Practices: 89 (🔴 down 9 from production)
SEO: 92 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Member

@pettinarip pettinarip left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@wackerow this is a great refactor. Thanks for doing it. Liked that we have the styles closer to the components.

Left IMO a comment with an improvement, feel free to disagree and merge.

SwiperSlide imported from library and exported unchanged for convenience
Swiper React manipulates DOM limiting ability to allow Swiper elements to sit in-flow with the custom placement of a SwiperNavigation component (this component will be forced to the end of a `swiper-wrapper` element. Known limitation of Swiper React that this wrapper cannot be manipulated with `wrapperClass`.

Alternatively, navigationPlacement variants added to at least enable positioning at bottom and top (default bottom)
Copy link
Member

@pettinarip pettinarip left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well done @wackerow, merging 👍🏼

@pettinarip pettinarip merged commit 9d499e4 into dev Sep 24, 2024
8 of 10 checks passed
@pettinarip pettinarip deleted the ui-swiper branch September 24, 2024 08:36
This was referenced Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants