Skip to content

Adding className to carousel components#682

Merged
TheSharpieOne merged 4 commits intoreactstrap:masterfrom
mkalish:bugfix/allow-custom-carousel-classes
Nov 14, 2017
Merged

Adding className to carousel components#682
TheSharpieOne merged 4 commits intoreactstrap:masterfrom
mkalish:bugfix/allow-custom-carousel-classes

Conversation

@mkalish
Copy link
Copy Markdown
Contributor

@mkalish mkalish commented Nov 14, 2017

Addresses Issue #669

  • Adds support for carousel components to accept the className prompt
  • Adds an example showing use of custom carousel tag and className

Addresses Issue 69
- Adds support for carousel components to accept the className prompt
- Adds an example showing use of custom carousel tag and className
Copy link
Copy Markdown
Member

@TheSharpieOne TheSharpieOne 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, just some minor things

Comment thread src/Carousel.js
interval: 5000,
pause: 'hover',
keyboard: true,
slide: true,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Don't think you meant to put this here

Comment thread src/CarouselCaption.js Outdated
'carousel-caption',
'd-none',
'd-md-block'
'd-md-block',
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Idk if comma dangle in a function call is a thing

Comment thread docs/lib/examples/CarouselCustomTag.js Outdated
<style dangerouslySetInnerHTML={{__html: `
<style>{`
.custom-tag {
max-width: 100%px;
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good catch @TheSharpieOne

return (
<div>
<style dangerouslySetInnerHTML={{__html: `
<style>{`
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This is much better than what I had... I have a few other places to change now.

@TheSharpieOne TheSharpieOne merged commit d23b28a into reactstrap:master Nov 14, 2017
@jeremy-donson
Copy link
Copy Markdown

Please excuse the uninformed question.
Will this allow me to style a carousel image?

In particular, resizing it so that the image is responsive as well?

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.

3 participants