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

Issue 611: Added extra props to allow customization of default controls #644

Merged
merged 1 commit into from
Jan 28, 2020

Conversation

mariano-formidable
Copy link
Member

@mariano-formidable mariano-formidable commented Jan 22, 2020

Description

This PR adds extra props to let users customize Nuka's default controls.

NOTE: I did not implement the ability to swap out the text of the Next/Prev button for icons or components. A custom icon would also need to support hover effects, enable/disable, and maybe other functionality that, I felt, could introduce too many edge cases. If a user wants totally special Next/Prev buttons, then, I feel, it's best to simply pass in their own custom component and handle all the logic themselves.

Fixes #611

Type of Change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)
  • This change requires a documentation update

How Has This Been Tested?

Manually tested, and current tests pass.

Screenshots

Normal demo app, without any changes (meaning things keep working by default):
normal-custom

Shnazzy demo app with custom text for Prev/Next buttons and red paging dots:
custom-custom

@mariano-formidable mariano-formidable force-pushed the feature/611-customize-paging-controls branch from 31addf7 to bcd6e65 Compare January 22, 2020 01:12
@mariano-formidable mariano-formidable force-pushed the feature/611-customize-paging-controls branch from bcd6e65 to 5deb130 Compare January 22, 2020 01:16
@mariano-formidable mariano-formidable changed the title [WIP] Issue 611: Added extra props to allow customization of default controls Issue 611: Added extra props to allow customization of default controls Jan 22, 2020
cx="3"
cy="3"
r="3"
style={{
Copy link
Member

Choose a reason for hiding this comment

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

Yes, thank you for moving this to the buttonStyles!

@sarmeyer sarmeyer merged commit 27d639b into master Jan 28, 2020
frnk94 pushed a commit to frnk94/nuka-carousel that referenced this pull request Jan 31, 2020
frnk94 pushed a commit to frnk94/nuka-carousel that referenced this pull request Jan 31, 2020
frnk94 pushed a commit to frnk94/nuka-carousel that referenced this pull request Jan 31, 2020
frnk94 pushed a commit to frnk94/nuka-carousel that referenced this pull request Jan 31, 2020
frnk94 pushed a commit to frnk94/nuka-carousel that referenced this pull request Jan 31, 2020
sarmeyer pushed a commit that referenced this pull request Feb 6, 2020
* Add typing to support changes introduced in #644
* Add new props to target controls container
* Small updates to README copy
@sarmeyer sarmeyer deleted the feature/611-customize-paging-controls branch March 12, 2021 23:05
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.

Next/Prev-Btn & PagingDots not configurable
2 participants