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

Carousel enhancements, including .carousel-dark #31650

Merged
merged 7 commits into from
Sep 24, 2020
Merged

Conversation

mdo
Copy link
Member

@mdo mdo commented Sep 14, 2020

This PR replaces the current carousel control chevron icons with the ones from Bootstrap Icons, and then adds a new .carousel-dark variant. That modifier class uses filter to invert the SVGs and some additional CSS to change the indicator and caption colors.

Fixes #25360.

Screen Shot 2020-09-14 at 10 50 29 AM

Preview: https://deploy-preview-31650--twbs-bootstrap.netlify.app/docs/5.0/components/carousel/#dark-variant

@XhmikosR XhmikosR requested a review from a team September 22, 2020 08:34
Copy link
Member

@ffoodd ffoodd left a comment

Choose a reason for hiding this comment

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

LGTM

@mdo mdo merged commit f951be3 into main Sep 24, 2020
@mdo mdo deleted the carousel-enhancements branch September 24, 2020 20:16
olsza pushed a commit to olsza/bootstrap that referenced this pull request Oct 3, 2020
* Replace existing carousel control icons with chevrons from Bootstrap Icons

* Add .carousel-dark variant

* Test

* Add variable for .carousel-dark filter

* Update _variables.scss

Co-authored-by: XhmikosR <[email protected]>
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.

Carousel has no light theme (with dark arrows/indicators)
4 participants