aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/twbs/bootstrap/site/docs/4.5/components
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/twbs/bootstrap/site/docs/4.5/components')
-rw-r--r--vendor/twbs/bootstrap/site/docs/4.5/components/carousel.md8
-rw-r--r--vendor/twbs/bootstrap/site/docs/4.5/components/popovers.md13
2 files changed, 21 insertions, 0 deletions
diff --git a/vendor/twbs/bootstrap/site/docs/4.5/components/carousel.md b/vendor/twbs/bootstrap/site/docs/4.5/components/carousel.md
index cdb0c6488..35bdd198f 100644
--- a/vendor/twbs/bootstrap/site/docs/4.5/components/carousel.md
+++ b/vendor/twbs/bootstrap/site/docs/4.5/components/carousel.md
@@ -321,6 +321,14 @@ Cycles to the next item. **Returns to the caller before the next item has been s
Destroys an element's carousel.
+#### `.carousel('nextWhenVisible')`
+
+Don't cycle the carousel to next when the page isn't visible or the carousel or its parent isn't visible. **Returns to the caller before the next item has been shown** (i.e. before the `slid.bs.carousel` event occurs).
+
+#### `.carousel('to')`
+
+Cycles the carousel to a particular frame (0 based, similar to an array). **Returns to the caller before the next item has been shown** (i.e. before the `slid.bs.carousel` event occurs).
+
### Events
Bootstrap's carousel class exposes two events for hooking into carousel functionality. Both events have the following additional properties:
diff --git a/vendor/twbs/bootstrap/site/docs/4.5/components/popovers.md b/vendor/twbs/bootstrap/site/docs/4.5/components/popovers.md
index bdd201b15..5b54d1c82 100644
--- a/vendor/twbs/bootstrap/site/docs/4.5/components/popovers.md
+++ b/vendor/twbs/bootstrap/site/docs/4.5/components/popovers.md
@@ -137,6 +137,19 @@ Enable popovers via JavaScript:
{% highlight js %}$('#example').popover(options){% endhighlight %}
{% capture callout %}
+##### GPU acceleration
+
+Popovers sometimes appear blurry on Windows 10 devices due to GPU acceleration and a modified system DPI. The workaround for this in v4 is to disable GPU acceleration as needed on your popovers.
+
+Suggested fix:
+
+{% highlight js %}
+Popper.Defaults.modifiers.computeStyle.gpuAcceleration = !(window.devicePixelRatio < 1.5 && /Win/.test(navigator.platform))
+{% endhighlight %}
+{% endcapture %}
+{% include callout.html content=callout type="warning" %}
+
+{% capture callout %}
### Making popovers work for keyboard and assistive technology users
To allow keyboard users to activate your popovers, you should only add them to HTML elements that are traditionally keyboard-focusable and interactive (such as links or form controls). Although arbitrary HTML elements (such as `<span>`s) can be made focusable by adding the `tabindex="0"` attribute, this will add potentially annoying and confusing tab stops on non-interactive elements for keyboard users, and most assistive technologies currently do not announce the popover's content in this situation. Additionally, do not rely solely on `hover` as the trigger for your popovers, as this will make them impossible to trigger for keyboard users.