mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-29 21:52:22 +01:00
few popover docs changes to clarify things mentioned in #24005
This commit is contained in:
parent
ad77ea7ae0
commit
1a569bab3f
@ -19,10 +19,10 @@ Things to know when using the popover plugin:
|
|||||||
- Specify `container: 'body'` to avoid rendering problems in more complex components (like our input groups, button groups, etc).
|
- Specify `container: 'body'` to avoid rendering problems in more complex components (like our input groups, button groups, etc).
|
||||||
- Triggering popovers on hidden elements will not work.
|
- Triggering popovers on hidden elements will not work.
|
||||||
- Popovers for `.disabled` or `disabled` elements must be triggered on a wrapper element.
|
- Popovers for `.disabled` or `disabled` elements must be triggered on a wrapper element.
|
||||||
- When triggered from hyperlinks that span multiple lines, popovers will be centered. Use `white-space: nowrap;` on your `<a>`s to avoid this behavior.
|
- When triggered from anchors that wrap across multiple lines, popovers will be centered between the anchors' overall width. Use `white-space: nowrap;` on your `<a>`s to avoid this behavior.
|
||||||
- Popovers must be hidden before their corresponding elements have been removed from the DOM.
|
- Popovers must be hidden before their corresponding elements have been removed from the DOM.
|
||||||
|
|
||||||
Got all that? Great, let's see how they work with some examples.
|
Keep reading to see see how popovers work with some examples.
|
||||||
|
|
||||||
## Example: Enable popovers everywhere
|
## Example: Enable popovers everywhere
|
||||||
|
|
||||||
@ -132,7 +132,7 @@ sagittis lacus vel augue laoreet rutrum faucibus.">
|
|||||||
|
|
||||||
### Dismiss on next click
|
### Dismiss on next click
|
||||||
|
|
||||||
Use the `focus` trigger to dismiss popovers on the next click that the user makes.
|
Use the `focus` trigger to dismiss popovers on the user's next click of a different element than the toggle element.
|
||||||
|
|
||||||
{% callout danger %}
|
{% callout danger %}
|
||||||
#### Specific markup required for dismiss-on-next-click
|
#### Specific markup required for dismiss-on-next-click
|
||||||
|
Loading…
x
Reference in New Issue
Block a user