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

docs: add design callouts in all the documentation when incompatibility with ODS #1614

Closed
wants to merge 71 commits into from
Closed
Show file tree
Hide file tree
Changes from 51 commits
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
b8a48d8
Add design callout messages everywhere needed
isabellechanclou Nov 9, 2022
fda5e4e
Add link on the callout title to go to the explanation of the presenc…
isabellechanclou Nov 9, 2022
fee6364
Fix the lineheight of callout text.
isabellechanclou Nov 10, 2022
867e9a5
Add design callout message in Customize/Color
isabellechanclou Nov 10, 2022
aa70535
Fix Buttons design callout message.
isabellechanclou Nov 10, 2022
798f1f3
Add design callout message in Button/Sizes custom size variant
isabellechanclou Nov 10, 2022
4a1d317
Add missing callout message in Docs>Components>Badge
isabellechanclou Nov 14, 2022
350c3f9
Fix word spelling
isabellechanclou Nov 14, 2022
8b84244
Fix link in a callout message for Badge component
isabellechanclou Nov 14, 2022
0bfbb44
Fix list-group/#numbered callout message
isabellechanclou Nov 14, 2022
2112c38
Fix Badges design callout messages after review
isabellechanclou Nov 25, 2022
3f3bd2a
Fix Breadcrumb design callout messages after review
isabellechanclou Nov 25, 2022
33fc463
Fix Button-group design callout messages after review
isabellechanclou Nov 25, 2022
ab28cf2
Remove h4 tag from design callout title
isabellechanclou Nov 28, 2022
885c070
Fix Buttons design callout messages + Add a design callout message in…
isabellechanclou Nov 28, 2022
0736e55
Fix Dropdowns design callout messages after review
isabellechanclou Nov 29, 2022
dea2716
Fix Modals design callout messages after review
isabellechanclou Nov 29, 2022
34a7060
Fix Carousel design callout messages after review
isabellechanclou Nov 29, 2022
c9426ab
Fix Progress design callout messages after review
isabellechanclou Nov 29, 2022
3c5232c
Fix Tooltip design callout messages after review
isabellechanclou Nov 29, 2022
cd0cf7b
Fix Reboot design callout messages after review
isabellechanclou Nov 29, 2022
fa4be81
Fix Color design callout messages after review
isabellechanclou Nov 29, 2022
2ce1f27
Fix Form control design callout messages after review
isabellechanclou Dec 2, 2022
f455984
Fix Input-group design callout messages after review
isabellechanclou Dec 2, 2022
c55605e
Fix Form/Layout design callout messages after review
isabellechanclou Dec 2, 2022
f3706df
Fix Form/Overview design callout messages after review
isabellechanclou Dec 5, 2022
13a9d53
Fix Form/Select design callout messages after review
isabellechanclou Dec 5, 2022
6a087c2
Fix Form/Validation design callout messages after review
isabellechanclou Dec 5, 2022
8cd8a84
Fix Introduction design callout messages after review
isabellechanclou Dec 5, 2022
ea144cf
Fix Breadcrumb design callout messages after review
isabellechanclou Dec 5, 2022
eb3cc22
Fix Button-group design callout messages after review
isabellechanclou Dec 5, 2022
5e33f1b
Fix Carousel design callout messages after review
isabellechanclou Dec 5, 2022
eac00f1
Fix Buttons design callout messages after review
isabellechanclou Dec 5, 2022
5472045
Fix Colors design callout messages after review
isabellechanclou Dec 5, 2022
bc01e55
Fix Dropdowns design callout messages after review
isabellechanclou Dec 5, 2022
39193ea
Fix Form control design callout messages after review
isabellechanclou Dec 5, 2022
de8fc8f
Fix Input group design callout messages after review
isabellechanclou Dec 5, 2022
7a4e7e4
Fix Introduction design callout messages after review
isabellechanclou Dec 5, 2022
74a336e
Fix Form/Overview design callout messages after review
isabellechanclou Dec 6, 2022
b819d38
Fix Modal design callout messages after review
isabellechanclou Dec 6, 2022
f9b896e
Fix Badge design callout messages after review
isabellechanclou Dec 7, 2022
2e9b718
Fix Progress design callout messages after review
isabellechanclou Dec 7, 2022
b19eb41
Fix Tooltips design callout messages after review
isabellechanclou Dec 7, 2022
5d3b634
Fix Form/Select design callout messages after review
isabellechanclou Dec 7, 2022
776708e
Fix Form/Validation design callout messages after review
isabellechanclou Dec 7, 2022
4480ba8
Fix Collapse design callout messages after review
isabellechanclou Dec 8, 2022
20e6a3a
Fix Nav-tabs design callout messages after review
isabellechanclou Dec 8, 2022
512eca4
Fix List-group design callout messages after review
isabellechanclou Dec 8, 2022
8c550e9
Fix design callout messages after review
isabellechanclou Dec 15, 2022
2443926
Fix design callout messages after review
isabellechanclou Dec 16, 2022
d59bb75
Merge branch 'main' into main-ic-add-design-callouts-in-docs
isabellechanclou Dec 16, 2022
e396a16
Merge branch 'main' into main-ic-add-design-callouts-in-docs
julien-deramond Dec 22, 2022
15c1a80
Drop Boosted mod comments
julien-deramond Dec 22, 2022
f8936ce
Fix design callout messages after dev and design review
isabellechanclou Feb 2, 2023
244f780
Update site/content/docs/5.2/forms/form-control.md
isabellechanclou Mar 10, 2023
7298b38
Update site/content/docs/5.2/forms/input-group.md
isabellechanclou Mar 10, 2023
a72a977
Fix design callout messages after dev and design review
isabellechanclou Mar 10, 2023
0be5ae2
Merge branch 'main' into main-ic-add-design-callouts-in-docs
isabellechanclou Mar 13, 2023
651d6ed
Merge remote-tracking branch 'origin/main-ic-add-design-callouts-in-d…
isabellechanclou Mar 14, 2023
454457a
Merge branch 'main' into main-ic-add-design-callouts-in-docs
isabellechanclou Mar 14, 2023
83942cc
Replace {{< ods-incompatibility-alert >}} by {{< design-callout-alert…
isabellechanclou Mar 14, 2023
28b2ce7
Add design callout messages in Spinner component
isabellechanclou Mar 14, 2023
fda225f
Adding and fixing design callout messages for input fieds of 30px height
isabellechanclou Mar 15, 2023
62c76a4
Fixing more design callout messages
isabellechanclou Mar 16, 2023
7b7c035
Merge branch 'main' into main-ic-add-design-callouts-in-docs for havi…
isabellechanclou Mar 20, 2023
ed643d8
Merge branch 'main' into main-ic-add-design-callouts-in-docs
isabellechanclou Mar 27, 2023
de08a1c
Fixes
isabellechanclou Apr 13, 2023
57faa2d
Merge branch 'main' into main-ic-add-design-callouts-in-docs
isabellechanclou Apr 13, 2023
36716cf
Merge branch 'main' into main-ic-add-design-callouts-in-docs
isabellechanclou Apr 17, 2023
5632d11
Merge branch 'main' into main-ic-add-design-callouts-in-docs
louismaximepiton Jan 4, 2024
4fcd51d
Proposal
louismaximepiton Jan 8, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions site/content/docs/5.2/components/badge.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ Badges scale to match the size of the immediate parent element by using relative

### Headings

<!-- Boosted mod : design callout -->
julien-deramond marked this conversation as resolved.
Show resolved Hide resolved
{{< ods-incompatibility-alert >}}
This component variant should not be used because it does not exist in the Orange Design System specifications.
{{< /ods-incompatibility-alert >}}

{{< example >}}
<h1>Example heading <span class="badge bg-secondary">New</span></h1>
<h2>Example heading <span class="badge bg-secondary">New</span></h2>
Expand All @@ -27,6 +32,11 @@ Badges scale to match the size of the immediate parent element by using relative

Badges can be used as part of links or buttons to provide a counter.

<!-- Boosted mod : design callout -->
{{< ods-incompatibility-alert >}}
This component should not be used because it does not exist in the Orange Design System specifications.
{{< /ods-incompatibility-alert >}}

{{< example >}}
<button type="button" class="btn btn-primary">
Notifications <span class="badge text-bg-secondary">4</span>
Expand All @@ -43,6 +53,13 @@ Unless the context is clear (as with the "Notifications" example, where it is un

Use utilities to modify a `.badge` and position it in the corner of a link with an icon.

<!-- Boosted mod : design callout -->
{{< ods-incompatibility-alert >}}
This component variant should be used **only** inside a header component.

Please refer to our Boosted [Navbars]({{< docsref "/examples/navbars" >}}) examples. You can also refer to the [Global headers](https://system.design.orange.com/0c1af118d/p/37609b-global-headers/b/366c91) guidelines on the Orange Design System website.
{{< /ods-incompatibility-alert >}}

{{< example >}}
<a href="#" class="position-relative">
<svg width="2rem" height="2rem" fill="currentColor" aria-hidden="true" focusable="false" class="overflow-visible">
Expand All @@ -64,6 +81,11 @@ Use utilities to modify a `.badge` and position it in the corner of a link with

{{< added-in "5.2.0" >}}

<!-- Boosted mod : design callout -->
{{< ods-incompatibility-alert >}}
These component variants should not be used because they do not exist in the Orange Design System specifications.
{{< /ods-incompatibility-alert >}}

Set a `background-color` with contrasting foreground `color` with [our `.text-bg-{color}` helpers]({{< docsref "helpers/color-background" >}}). Previously it was required to manually pair your choice of [`.text-{color}`]({{< docsref "/utilities/colors" >}}) and [`.bg-{color}`]({{< docsref "/utilities/background" >}}) utilities for styling, which you still may use if you prefer.

{{< example >}}
Expand All @@ -81,6 +103,13 @@ Set a `background-color` with contrasting foreground `color` with [our `.text-bg

Use the `.rounded-pill` utility class to make badges more rounded with a larger `border-radius`.

<!-- Boosted mod : design callout -->
{{< ods-incompatibility-alert >}}
This component should not be used because it does not exist in the Orange Design System specifications.

Instead, consider using our Boosted [Tags]({{< docsref "/components/tags" >}}). You can also refer to the [Tags](https://system.design.orange.com/0c1af118d/p/975c09-tags/b/24dde8) guidelines on the Orange Design System website.
{{< /ods-incompatibility-alert >}}

{{< example >}}
{{< badge.inline >}}
{{- range (index $.Site.Data "theme-colors") }}
Expand Down
7 changes: 7 additions & 0 deletions site/content/docs/5.2/components/breadcrumb.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,13 @@ $breadcrumb-divider: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/

You can also remove the divider setting `--bs-breadcrumb-divider: '';` (empty strings in CSS custom properties counts as a value), or setting the Sass variable to `$breadcrumb-divider: none;`.

<!-- Boosted mod : design callout -->
{{< ods-incompatibility-alert >}}
This variant **without the breadcrumb dividers** should not be used because it does not respect the Orange Design System specifications.

Please refer to the [Local Headers/Breadcrumb](https://system.design.orange.com/0c1af118d/p/774477-local-headers/b/743cd0/i/66611057) guidelines on the Orange Design System website.
{{< /ods-incompatibility-alert >}}

{{< example >}}
<nav style="--bs-breadcrumb-divider: '';" aria-label="breadcrumb">
<ol class="breadcrumb">
Expand Down
29 changes: 29 additions & 0 deletions site/content/docs/5.2/components/button-group.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,13 @@ These classes can also be added to groups of links, as an alternative to the [`.

## Mixed styles

<!-- Boosted mod : design callout -->
{{< ods-incompatibility-alert >}}
This variant **using and mixing colored button backgrounds** should not be used because it does not respect the Orange Design System specifications. In button groups, you should only use the button variant that has the `.btn btn-secondary` classes.

Please refer to our Boosted [Buttons]{{< docsref "/components/buttons#examples" >}} secondary variant component. You can also refer to the [Buttons: standard](https://system.design.orange.com/0c1af118d/p/278ebc-buttons-standard/b/539dce) guidelines on the Orange Design System website.
{{< /ods-incompatibility-alert >}}

{{< example >}}
<div class="btn-group" role="group" aria-label="Basic mixed styles example">
<button type="button" class="btn btn-danger">Left</button>
Expand All @@ -54,6 +61,13 @@ These classes can also be added to groups of links, as an alternative to the [`.

Combine button-like checkbox and radio [toggle buttons]({{< docsref "/forms/checks-radios" >}}) into a seamless looking button group.

<!-- Boosted mod : design callout -->
{{< ods-incompatibility-alert >}}
This **checkbox** variant should not be used because it does not respect the Orange Design System specifications.

From the Orange Design System point of view, checkboxes should be represented like in our Boosted [Checks]({{< docsref "/forms/checks-radios" >}}) component. You can also refer to the [Checkbox](https://system.design.orange.com/0c1af118d/p/88ab5b-forms/b/599459/i/48901789) guidelines on the Orange Design System website.
{{< /ods-incompatibility-alert >}}

{{< example >}}
<div class="btn-group" role="group" aria-label="Basic checkbox toggle button group">
<input type="checkbox" class="btn-check" id="btncheck1" autocomplete="off">
Expand Down Expand Up @@ -84,6 +98,11 @@ Combine button-like checkbox and radio [toggle buttons]({{< docsref "/forms/chec

Combine sets of button groups into button toolbars for more complex components. Use utility classes as needed to space out groups, buttons, and more.

<!-- Boosted mod : design callout -->
{{< ods-incompatibility-alert >}}
This variant should not be used because it does not respect the Orange Design System specifications.
{{< /ods-incompatibility-alert >}}

{{< example >}}
<div class="btn-toolbar" role="toolbar" aria-label="Toolbar with button groups">
<div class="btn-group me-2" role="group" aria-label="First group">
Expand Down Expand Up @@ -161,6 +180,11 @@ Instead of applying button sizing classes to every button in a group, just add `

Place a `.btn-group` within another `.btn-group` when you want dropdown menus mixed with a series of buttons.

<!-- Boosted mod : design callout -->
{{< ods-incompatibility-alert >}}
This variant should not be used because it does not respect the Orange Design System specifications.
{{< /ods-incompatibility-alert >}}

{{< example >}}
<div class="btn-group" role="group" aria-label="Button group with nested dropdown">
<button type="button" class="btn btn-secondary">1</button>
Expand All @@ -183,6 +207,11 @@ Place a `.btn-group` within another `.btn-group` when you want dropdown menus mi

Make a set of buttons appear vertically stacked rather than horizontally.

<!-- Boosted mod : design callout -->
{{< ods-incompatibility-alert >}}
These 2 vertical variants should not be used because they do not respect the Orange Design System specifications.
{{< /ods-incompatibility-alert >}}

{{< example >}}
<div class="btn-group-vertical" role="group" aria-label="Vertical button group">
<button type="button" class="btn btn-dark">Button</button>
Expand Down
21 changes: 20 additions & 1 deletion site/content/docs/5.2/components/buttons.md
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,12 @@ Fancy larger or smaller buttons? Add `.btn-lg` or `.btn-sm` for additional sizes
<button type="button" class="btn btn-secondary btn-sm">Small button</button>
{{< /example >}}

**It is not recommended by Orange Design System** but in some cases you could even roll your own custom sizing with CSS variables:
<!-- Boosted mod : design callout -->
{{< ods-incompatibility-alert >}}
This variant should not be used because it does not respect the Orange Design System specifications.

Please refer to the [Buttons](https://system.design.orange.com/0c1af118d/p/278ebc-buttons-standard/b/247486) guidelines on the Orange Design System website.
{{< /ods-incompatibility-alert >}}

{{< example >}}
<button type="button" class="btn btn-primary"
Expand Down Expand Up @@ -256,6 +261,13 @@ To cover cases where you have to keep the `href` attribute on a disabled link, t

Create responsive stacks of full-width, "block buttons" like those in Boosted 4 with a mix of our display and gap utilities. By using utilities instead of button specific classes, we have much greater control over spacing, alignment, and responsive behaviors.

<!-- Boosted mod : design callout -->
{{< ods-incompatibility-alert >}}
These **full-width** buttons should not be used on desktop screens because they do not respect the Orange Design System specifications.

Please refer to the [Buttons](https://system.design.orange.com/0c1af118d/p/278ebc-buttons-standard/b/247486) guidelines on the Orange Design System website.
{{< /ods-incompatibility-alert >}}

{{< example >}}
<div class="d-grid gap-2">
<button class="btn btn-primary" type="button">Button</button>
Expand Down Expand Up @@ -294,6 +306,13 @@ Additional utilities can be used to adjust the alignment of buttons when horizon

The button plugin allows you to create simple on/off toggle buttons.

<!-- Boosted mod : design callout -->
isabellechanclou marked this conversation as resolved.
Show resolved Hide resolved
{{< ods-incompatibility-alert >}}
These variants with only **one toggle button** should not be used because they do not respect the Orange Design System specifications. From the Orange Design System point of view and for usability reasons, a toggle button should not be used alone.

Instead, consider using our Boosted [Checks]({{< docsref "/forms/checks-radios#checks" >}}), [Radios]({{< docsref "/forms/checks-radios#radios" >}}) or [Radio toggle buttons]({{< docsref "/forms/checks-radios#radio-toggle-buttons" >}}) components.
{{< /ods-incompatibility-alert >}}

{{< callout info >}}
Visually, these toggle buttons are identical to the [checkbox toggle buttons]({{< docsref "/forms/checks-radios#checkbox-toggle-buttons" >}}). However, they are conveyed differently by assistive technologies: the checkbox toggles will be announced by screen readers as "checked"/"not checked" (since, despite their appearance, they are fundamentally still checkboxes), whereas these toggle buttons will be announced as "button"/"button pressed". The choice between these two approaches will depend on the type of toggle you are creating, and whether or not the toggle will make sense to users when announced as a checkbox or as an actual button.
{{< /callout >}}
Expand Down
7 changes: 7 additions & 0 deletions site/content/docs/5.2/components/carousel.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,13 @@ This `button` must immediately follow your carousel and have the custom `data-bs

Add captions to your slides easily with the `.carousel-caption` element within any `.carousel-item`. They can be easily hidden on smaller viewports, as shown below, with optional [display utilities]({{< docsref "/utilities/display" >}}). We hide them initially with `.d-none` and bring them back on medium-sized devices with `.d-md-block`.

<!-- Boosted mod : design callout -->
{{< ods-incompatibility-alert >}}
isabellechanclou marked this conversation as resolved.
Show resolved Hide resolved
**Captions** should not be used because they do not respect the Orange Design System specifications.

Please refer to the [Carousel navigation](https://system.design.orange.com/0c1af118d/p/7773e1-carousel-navigation/b/99a7b7) guidelines on the Orange Design System website.
{{< /ods-incompatibility-alert >}}

{{< example >}}
<div id="carouselExampleCaptions" class="carousel slide" data-bs-ride="false">
<div class="carousel-indicators">
Expand Down
6 changes: 6 additions & 0 deletions site/content/docs/5.2/components/collapse.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,16 @@ toc: true

The collapse JavaScript plugin is used to show and hide content. Buttons or anchors are used as triggers that are mapped to specific elements you toggle. Collapsing an element will animate the `height` from its current value to `0`. Given how CSS handles animations, you cannot use `padding` on a `.collapse` element. Instead, use the class as an independent wrapping element.

<!-- Boosted mod : design callout -->
{{< ods-incompatibility-alert >}}
Triggering a collapse behavior from a button component should not be used because it does not respect the Orange Design System specifications .
{{< /ods-incompatibility-alert >}}

{{< callout info >}}
{{< partial "callout-info-prefersreducedmotion.md" >}}
{{< /callout >}}


isabellechanclou marked this conversation as resolved.
Show resolved Hide resolved
## Example

Click the buttons below to show and hide another element via class changes:
Expand Down
48 changes: 47 additions & 1 deletion site/content/docs/5.2/components/dropdowns.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,12 @@ Button dropdowns work with buttons of all sizes, including default and split dro
</ul>
</div>
```
<!-- Boosted mod : design callout -->
{{< ods-incompatibility-alert >}}
This small variant should not be used because it does not respect the Orange Design System specifications.

Please refer to the [Dropdown](https://system.design.orange.com/0c1af118d/p/910b9b-dropdown/b/04c480) guidelines on the Orange Design System website.
{{< /ods-incompatibility-alert >}}

louismaximepiton marked this conversation as resolved.
Show resolved Hide resolved
<div class="bd-example">
<div class="btn-group">
Expand Down Expand Up @@ -268,6 +274,13 @@ Directions are mirrored when using Boosted in RTL, meaning `.dropstart` will app

Make the dropdown menu centered below the toggle with `.dropdown-center` on the parent element.

<!-- Boosted mod : design callout -->
{{< ods-incompatibility-alert >}}
This variant should not be used because it does not respect the Orange Design System specifications.

Please refer to the [Dropdown](https://system.design.orange.com/0c1af118d/p/910b9b-dropdown/b/04c480) guidelines on the Orange Design System website.
{{< /ods-incompatibility-alert >}}

{{< example >}}
<div class="dropdown-center">
<button class="btn btn-secondary dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false">
Expand Down Expand Up @@ -344,6 +357,13 @@ Trigger dropdown menus above elements by adding `.dropup` to the parent element.

Make the dropup menu centered above the toggle with `.dropup-center` on the parent element.

<!-- Boosted mod : design callout -->
{{< ods-incompatibility-alert >}}
This variant should not be used because it does not respect the Orange Design System specifications.

Please refer to the [Dropdown](https://system.design.orange.com/0c1af118d/p/910b9b-dropdown/b/04c480) guidelines on the Orange Design System website.
{{< /ods-incompatibility-alert >}}

{{< example >}}
<div class="dropup-center dropup">
<button class="btn btn-secondary dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false">
Expand Down Expand Up @@ -492,7 +512,7 @@ You can use `<a>` or `<button>` elements as dropdown items.
</div>
{{< /example >}}

You can also create non-interactive dropdown items with `.dropdown-item-text`. Feel free to style further with custom CSS or text utilities.
You can also create non-interactive dropdown items with `.dropdown-item-text`.
louismaximepiton marked this conversation as resolved.
Show resolved Hide resolved

{{< example >}}
<ul class="dropdown-menu">
Expand Down Expand Up @@ -701,6 +721,13 @@ Separate groups of related menu items with a divider.

isabellechanclou marked this conversation as resolved.
Show resolved Hide resolved
Place any freeform text within a dropdown menu with text and use [spacing utilities]({{< docsref "/utilities/spacing" >}}). Note that you'll likely need additional sizing styles to constrain the menu width.

<!-- Boosted mod : design callout -->
{{< ods-incompatibility-alert >}}
This variant should not be used because it does not respect the Orange Design System specifications.

Please refer to the [Dropdown](https://system.design.orange.com/0c1af118d/p/910b9b-dropdown/b/04c480) guidelines on the Orange Design System website.
{{< /ods-incompatibility-alert >}}

{{< example >}}
<div class="dropdown-menu p-4 text-muted" style="max-width: 200px;">
<p>
Expand All @@ -716,6 +743,13 @@ Place any freeform text within a dropdown menu with text and use [spacing utilit

Put a form within a dropdown menu, or make it into a dropdown menu, and use [margin or padding utilities]({{< docsref "/utilities/spacing" >}}) to give it the negative space you require.

<!-- Boosted mod : design callout -->
{{< ods-incompatibility-alert >}}
This variant should not be used because it does not respect the Orange Design System specifications.

Please refer to the [Dropdown](https://system.design.orange.com/0c1af118d/p/910b9b-dropdown/b/04c480) guidelines on the Orange Design System website.
{{< /ods-incompatibility-alert >}}

{{< example >}}
<div class="dropdown-menu">
<form class="px-4 py-3">
Expand Down Expand Up @@ -774,6 +808,13 @@ Put a form within a dropdown menu, or make it into a dropdown menu, and use [mar

Use `data-bs-offset` or `data-bs-reference` to change the location of the dropdown.

<!-- Boosted mod : design callout -->
{{< ods-incompatibility-alert >}}
This variant should not be used because it does not respect the Orange Design System specifications.
isabellechanclou marked this conversation as resolved.
Show resolved Hide resolved

Please refer to the [Dropdown](https://system.design.orange.com/0c1af118d/p/910b9b-dropdown/b/04c480) guidelines on the Orange Design System website.
{{< /ods-incompatibility-alert >}}

{{< example >}}
<div class="d-flex">
<div class="dropdown me-1">
Expand Down Expand Up @@ -806,6 +847,11 @@ Use `data-bs-offset` or `data-bs-reference` to change the location of the dropdo

By default, the dropdown menu is closed when clicking inside or outside the dropdown menu. You can use the `autoClose` option to change this behavior of the dropdown.

<!-- Boosted mod : design callout -->
isabellechanclou marked this conversation as resolved.
Show resolved Hide resolved
{{< ods-incompatibility-alert >}}
The 3 last auto close behavior variants should not be used because featuring a single selection, they do no respect the Orange Design System specifications. They can be used only if featuring multiple selections.
{{< /ods-incompatibility-alert >}}

{{< example >}}
<div class="btn-group">
<button class="btn btn-secondary dropdown-toggle" type="button" data-bs-toggle="dropdown" data-bs-auto-close="true" aria-expanded="false">
Expand Down
Loading