diff options
| author | Patrick H. Lauke <[email protected]> | 2021-01-27 15:31:16 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-01-27 17:31:16 +0200 |
| commit | 3aa3fda730ddb4d0231f4d2c83b255315f9f3684 (patch) | |
| tree | 183850f61f50db2cec25436b454fedbd6755f466 /scss | |
| parent | 61391c4ee2f000685f39be9f0c7369142d54dd35 (diff) | |
| download | bootstrap-3aa3fda730ddb4d0231f4d2c83b255315f9f3684.tar.xz bootstrap-3aa3fda730ddb4d0231f4d2c83b255315f9f3684.zip | |
Carousel: use buttons, not links, for prev/next controls (#32627)
* Carousel: use buttons, not links, for prev/next
- expand the styles to neutralise border/background
- change docs page
- add extra unit test to check that links or buttons work as controls
- modify visual test to use buttons as well
- use buttons instead of links for prev/next
- remove `role="button"` from links that are actually links
* Clarify that controls can be button or link
* Update site/content/docs/5.0/components/carousel.md
Co-authored-by: Mark Otto <[email protected]>
* Explicitly set padding to 0 to prevent dipping/moving on active in Firefox
Co-authored-by: XhmikosR <[email protected]>
Diffstat (limited to 'scss')
| -rw-r--r-- | scss/_carousel.scss | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scss/_carousel.scss b/scss/_carousel.scss index d2e42bc10..d9ff7e535 100644 --- a/scss/_carousel.scss +++ b/scss/_carousel.scss @@ -98,8 +98,11 @@ align-items: center; // 2. vertically center contents justify-content: center; // 3. horizontally center contents width: $carousel-control-width; + padding: 0; color: $carousel-control-color; text-align: center; + background: none; + border: 0; opacity: $carousel-control-opacity; @include transition($carousel-control-transition); |
