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

Add an actual data-bs-touch="false" example in the carousel docs #32638

Merged
merged 9 commits into from Dec 29, 2020

Conversation

patrickhlauke
Copy link
Member

this can also make it easier to actually check/debug any issues we may have with this data attribute

this can also make it easier to actually check/debug any issues we may have with this data attribute
@patrickhlauke patrickhlauke added this to Inbox in v5.0.0-beta3 via automation Dec 28, 2020
@patrickhlauke patrickhlauke marked this pull request as draft December 28, 2020 12:47
@patrickhlauke patrickhlauke added this to Inbox in v4.6.0 via automation Dec 28, 2020
@rohit2sharma95
Copy link
Collaborator

So it means the issue can not be reproduced in the main branch? (I can see that touch events are not working when data-bs-touch is set to false in the example)

@patrickhlauke
Copy link
Member Author

So it means the issue can not be reproduced in the main branch? (I can see that touch events are not working when data-bs-touch is set to false in the example)

correct, I edited/added this to the other issue about the supposed bug itself. still would like this as an addition to the docs regardless, as it makes it nice and obvious

@patrickhlauke patrickhlauke marked this pull request as ready for review December 28, 2020 13:42
@rohit2sharma95 rohit2sharma95 changed the title Add an actual data-touch="false" example in the carousel docs Add an actual data-bs-touch="false" example in the carousel docs Dec 28, 2020
looking at the code, it's still `ride`, not `slide`the `if "carousel"` bit was rather unclear/confusing
getting myself confused now
@patrickhlauke patrickhlauke marked this pull request as ready for review December 28, 2020 23:28
</tr>
<tr>
<td><code>slide</code></td>
<td><code>ride</code></td>
Copy link
Member

Choose a reason for hiding this comment

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

Wonder why this was slide all this time...

Copy link
Member Author

Choose a reason for hiding this comment

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

yes, either I missed something, or we've had a typo in the options all along...

(admittedly it's the first time I've properly looked at our carousels, but still)

Copy link
Member

Choose a reason for hiding this comment

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

Yeah, it looks like it's a typo AFAICT. Going to merge this later.

@XhmikosR XhmikosR merged commit b05145c into main Dec 29, 2020
v5.0.0-beta3 automation moved this from Approved to Done Dec 29, 2020
@XhmikosR XhmikosR deleted the patrickhlauke-carousel-touch branch December 29, 2020 13:40
@XhmikosR XhmikosR removed this from Inbox in v4.6.0 Dec 29, 2020
sijusamson pushed a commit to sijusamson/bootstrap that referenced this pull request Jan 4, 2021
…wbs#32638)

* Add an actual `data-touch="false"` example in the carousel docs

this can also make it easier to actually check/debug any issues we may have with this data attribute

* Correct attribute table explanation and remove slide class from example
@XhmikosR XhmikosR removed this from Done in v5.0.0-beta3 Jan 5, 2021
@XhmikosR XhmikosR added this to Inbox in v5.0.0-beta2 via automation Jan 5, 2021
@XhmikosR XhmikosR moved this from Inbox to Done in v5.0.0-beta2 Jan 5, 2021
patrickhlauke added a commit that referenced this pull request Jan 5, 2021
…32639)

* v4: Add an actual `data-touch="false"` example in the carousel docs

Backport of #32638

* Remove data-ride from example carousel

* Correct attribute table explanation and remove slide class from example

i believe the correct option is `slide` here, not `ride`.
the `if "carousel"` bit was rather unclear/confusing

* Edits...

sorry, trying to make sense of our quirky carousel stuff, it seems some illogical things have been there ever since

* Add data-interval to suppress autoplay

* Tweak carousel options formatting

* Update site/content/docs/4.5/components/carousel.md

Co-authored-by: Mark Otto <markd.otto@gmail.com>

* Tweak language

mostly based on @mdo's suggestion, but also adds the word "attribute" after `data-ride` for better flow/legibility

Co-authored-by: Mark Otto <markd.otto@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
v5.0.0-beta2
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants