aboutsummaryrefslogtreecommitdiff
path: root/site
diff options
context:
space:
mode:
authorRohit Sharma <[email protected]>2021-02-04 01:07:25 +0530
committerGitHub <[email protected]>2021-02-03 21:37:25 +0200
commit217d84d6b25c44ea9791e4ca760a35e46f2e0653 (patch)
tree5d2f0da60cecad1e7eb6c0e9387677e6fa50a5f6 /site
parenta1bb65ef49d1373f224e228e67112a675b390720 (diff)
downloadbootstrap-217d84d6b25c44ea9791e4ca760a35e46f2e0653.tar.xz
bootstrap-217d84d6b25c44ea9791e4ca760a35e46f2e0653.zip
Remove the initial margin from dropdown/popover in favor of Popper (#32524)
* Remove the margin from dropdown in favor of Popper - Set the default margin to 0 for dropdowns (To remove the Popper's warning) - Set the required offset in dropdown's defaults * Remove the margin from the popover component Co-authored-by: XhmikosR <[email protected]>
Diffstat (limited to 'site')
-rw-r--r--site/content/docs/5.0/components/dropdowns.md2
-rw-r--r--site/content/docs/5.0/components/popovers.md2
2 files changed, 2 insertions, 2 deletions
diff --git a/site/content/docs/5.0/components/dropdowns.md b/site/content/docs/5.0/components/dropdowns.md
index 37c3a74c1..978217583 100644
--- a/site/content/docs/5.0/components/dropdowns.md
+++ b/site/content/docs/5.0/components/dropdowns.md
@@ -899,7 +899,7 @@ Options can be passed via data attributes or JavaScript. For data attributes, ap
<tr>
<td><code>offset</code></td>
<td>array | string | function</td>
- <td><code>[0, 0]</code></td>
+ <td><code>[0, 2]</code></td>
<td>
<p>Offset of the dropdown relative to its target. You can pass a string in data attributes with comma separated values like: <code>data-bs-offset="10,20"</code></p>
<p>When a function is used to determine the offset, it is called with an object containing the popper placement, the reference, and popper rects as its first argument. The triggering element DOM node is passed as the second argument. The function must return an array with two numbers: <code>[<a href="https://popper.js.org/docs/v2/modifiers/offset/#skidding-1">skidding</a>, <a href="https://popper.js.org/docs/v2/modifiers/offset/#distance-1">distance</a>]</code>.</p>
diff --git a/site/content/docs/5.0/components/popovers.md b/site/content/docs/5.0/components/popovers.md
index ddfc6c130..3fac25526 100644
--- a/site/content/docs/5.0/components/popovers.md
+++ b/site/content/docs/5.0/components/popovers.md
@@ -270,7 +270,7 @@ Note that for security reasons the `sanitize`, `sanitizeFn`, and `allowList` opt
<tr>
<td><code>offset</code></td>
<td>array | string | function</td>
- <td><code>[0, 0]</code></td>
+ <td><code>[0, 8]</code></td>
<td>
<p>Offset of the popover relative to its target. You can pass a string in data attributes with comma separated values like: <code>data-bs-offset="10,20"</code></p>
<p>When a function is used to determine the offset, it is called with an object containing the popper placement, the reference, and popper rects as its first argument. The triggering element DOM node is passed as the second argument. The function must return an array with two numbers: <code>[<a href="https://popper.js.org/docs/v2/modifiers/offset/#skidding-1">skidding</a>, <a href="https://popper.js.org/docs/v2/modifiers/offset/#distance-1">distance</a>]</code>.</p>