Skip to content

prevent slide CTA from disappearing on scroll#166

Merged
medyo merged 1 commit intomedyo:developfrom
victor-duarte:fix/slide-navigation-cta-disappear
Sep 28, 2023
Merged

prevent slide CTA from disappearing on scroll#166
medyo merged 1 commit intomedyo:developfrom
victor-duarte:fix/slide-navigation-cta-disappear

Conversation

@victor-duarte
Copy link
Copy Markdown
Contributor

@victor-duarte victor-duarte commented Sep 26, 2023

Closes #112

Scroll event added to .Cards is triggered on scroll of the children (.Block) causing calculation to be done against Block offset instead of Cards returning unexpected values.

  • Prevent scrolling calculations from being triggered on none .Cards elements
  • Update slide CTA initial state to false since the CTA's would only appear after user setup
  • Prevent last Block being cutoff when scrolling is available by removing the scroll-padding-left property
  • Add aria labels to previous and next cta's

@medyo medyo self-requested a review September 28, 2023 12:16
Copy link
Copy Markdown
Owner

@medyo medyo left a comment

Choose a reason for hiding this comment

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

Looks good, well done
can you remove the unused class scrollButtonNext?

@victor-duarte
Copy link
Copy Markdown
Contributor Author

Looks good, well done can you remove the unused class scrollButtonNext?

The class has been removed.

@victor-duarte victor-duarte requested a review from medyo September 28, 2023 12:51
@medyo medyo changed the base branch from master to develop September 28, 2023 12:56
@medyo medyo merged commit af3eea7 into medyo:develop Sep 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

clicking right arrow button and then scrolling bug

2 participants