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

Change background color as needed #184

Open
giulianok opened this issue Dec 29, 2020 · 0 comments
Open

Change background color as needed #184

giulianok opened this issue Dec 29, 2020 · 0 comments

Comments

@giulianok
Copy link

Is your feature request related to a problem? Please describe.
The item has a fixed color (white) that can only be customizable by providing custom styles or by overriding the item class. See https://github.com/sandstreamdev/react-swipeable-list/blob/master/src/SwipeableListItem.css#L15. The problem comes when the list is needed in different colors.

Describe the solution you'd like
Add an optional className prop to SwipeableListItem to let the user makes any overrides needed.

Describe alternatives you've considered

  • Add an optional bgColor prop to SwipeableListItem to let the user customize it.
  • Use CSS variables to let the user customize it via CSS. This only adds some flexibility but does not help to fix the issue of using the list with different bg colors.

Additional context
N/A


Note: Happy to open a PR with a solution after discussing the options

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

No branches or pull requests

1 participant