From aaff11a0b321e7c1b93c089e709ee92d01a4b6f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20Poupard?= Date: Tue, 9 Jun 2020 16:44:20 +0300 Subject: docs(examples): new cheatsheet and RTL examples --- site/content/docs/5.0/components/dropdowns.md | 59 +++++++++++++++------------ 1 file changed, 32 insertions(+), 27 deletions(-) (limited to 'site/content/docs/5.0/components/dropdowns.md') diff --git a/site/content/docs/5.0/components/dropdowns.md b/site/content/docs/5.0/components/dropdowns.md index 95e6f792c4..69a7783dc0 100644 --- a/site/content/docs/5.0/components/dropdowns.md +++ b/site/content/docs/5.0/components/dropdowns.md @@ -395,6 +395,11 @@ And putting it to use in a navbar: ## Directions +{{< callout info >}} +#### RTL +Directions are mirrored when using Bootstrap in RTL, meaning `.dropstart` will appear on the right side. +{{< /callout >}} + ### Dropup Trigger dropdown menus above elements by adding `.dropup` to the parent element. @@ -456,10 +461,10 @@ Trigger dropdown menus above elements by adding `.dropup` to the parent element. ### Dropright -Trigger dropdown menus at the right of the elements by adding `.dropright` to the parent element. +Trigger dropdown menus at the right of the elements by adding `.dropend` to the parent element.
-
+
@@ -471,9 +476,9 @@ Trigger dropdown menus at the right of the elements by adding `.dropright` to th
  • Separated link
  • -
    +
    ```html - -
    + +
    @@ -499,10 +504,10 @@ Trigger dropdown menus at the right of the elements by adding `.dropright` to th
    - -
    + +
    @@ -531,7 +536,7 @@ Trigger dropdown menus at the left of the elements by adding `.dropleft` to the
    -
    +
    @@ -544,34 +549,34 @@ Trigger dropdown menus at the left of the elements by adding `.dropleft` to the
    ```html - -
    + +
    - +
    -
    +
    ``` @@ -630,7 +635,7 @@ Add `.disabled` to items in the dropdown to **style them as disabled**. ## Menu alignment -By default, a dropdown menu is automatically positioned 100% from the top and along the left side of its parent. Add `.dropdown-menu-right` to a `.dropdown-menu` to right align the dropdown menu. +By default, a dropdown menu is automatically positioned 100% from the top and along the left side of its parent. Add `.dropdown-menu-end` to a `.dropdown-menu` to right align the dropdown menu. Directions are mirrored when using Bootstrap in RTL, meaning `.dropdown-menu-end` will appear on the left side. {{< callout info >}} **Heads up!** Dropdowns are positioned thanks to Popper (except when they are contained in a navbar). @@ -641,7 +646,7 @@ By default, a dropdown menu is automatically positioned 100% from the top and al -