Skip to content

Commit ed7963d

Browse files
committed
Merge branch 'v5-bootstrap-compatible' of https://github.com/coreui/coreui into v5-bootstrap-compatible
2 parents c0fca86 + 5a86f47 commit ed7963d

File tree

18 files changed

+44
-3
lines changed

18 files changed

+44
-3
lines changed

build/postcss.config.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ export default context => {
1111
autoprefixer: {
1212
cascade: false
1313
},
14-
'postcss-combine-duplicated-selectors': {}
14+
'postcss-combine-duplicated-selectors': {},
15+
rtlcss: context.env === 'RTL'
1516
}
1617
}
1718
}

docs/content/components/alerts.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,8 @@ When an alert is dismissed, the element is completely removed from the page stru
147147

148148
## JavaScript behavior
149149

150+
{{< bootstrap-compatibility >}}
151+
150152
### Initialize
151153

152154
Initialize elements as alerts

docs/content/components/carousel.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,8 @@ The transition duration of `.carousel-item` can be changed with the `$carousel-t
296296

297297
## Usage
298298

299+
{{< bootstrap-compatibility >}}
300+
299301
### Via data attributes
300302

301303
Utilize data attributes to control the position of the carousel. `data-coreui-slide` allows the keywords `prev` or `next`, which changes the slide position corresponding to its current position. Alternatively, use `data-coreui-slide-to` to pass a raw slide index to the carousel `data-coreui-slide-to="2"`, which moves the slide position to a particular index beginning with `0`.

docs/content/components/collapse.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,8 @@ If your control element is targeting a single collapsible element – i.e., the
108108
Note that CoreUI for Bootstrap's current implementation does not cover the various *optional* keyboard interactions described in the [WAI-ARIA Authoring Practices 1.1 accordion pattern](https://www.w3.org/TR/wai-aria-practices-1.1/#accordion) - you will need to include these yourself with custom JavaScript.
109109
## Usage
110110

111+
{{< bootstrap-compatibility >}}
112+
111113
The collapse plugin utilizes a few classes to handle the heavy lifting:
112114

113115
- `.collapse` hides the content

docs/content/components/dropdowns.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -999,6 +999,8 @@ By default, the dropdown menu is closed when clicking inside or outside the drop
999999

10001000
## Usage
10011001

1002+
{{< bootstrap-compatibility >}}
1003+
10021004
Via data attributes or JavaScript, the dropdown plugin toggles hidden content (dropdown menus) by toggling the `.show` class on the parent `.dropdown-menu`. The `data-coreui-toggle="dropdown"` attribute is relied on for closing dropdown menus at an application level, so it's a good idea to always use it.
10031005

10041006
{{< callout info >}}

docs/content/components/list-group.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,8 @@ And if you want `<label>`s as the `.list-group-item` for large hit areas, you ca
305305

306306
## JavaScript behavior
307307

308+
{{< bootstrap-compatibility >}}
309+
308310
Use the tab JavaScript plugin—include it individually or through the compiled `coreui.js` file—to extend our list group to create tabbable panes of local content.
309311

310312
<div class="docs-example" role="tabpanel">

docs/content/components/modal.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -758,6 +758,8 @@ Another override is the option to pop up a modal that covers the user viewport,
758758

759759
## Usage
760760

761+
{{< bootstrap-compatibility >}}
762+
761763
The modal plugin toggles your hidden content on demand, via data attributes or JavaScript. It also overrides default scrolling behavior and generates a `.modal-backdrop` to provide a click area for dismissing shown modals when clicking outside the modal.
762764

763765
### Via data attributes

docs/content/components/navs-tabs.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,8 @@ Add dropdown menus with a little extra HTML and the [dropdowns JavaScript plugin
377377

378378
## JavaScript behavior
379379

380+
{{< bootstrap-compatibility >}}
381+
380382
Use the tab JavaScript plugin—include it individually or through the compiled `coreui.js` file—to extend our navigational tabs and pills to create tabbable panes of local content, even via dropdown menus.
381383

382384
Dynamic tabbed interfaces, as described in the [<abbr title="Web Accessibility Initiative">WAI</abbr> <abbr title="Accessible Rich Internet Applications">ARIA</abbr> Authoring Practices](https://www.w3.org/TR/wai-aria-practices/#tabpanel), require `role="tablist"`, `role="tab"`, `role="tabpanel"`, and additional `aria-` attributes in order to convey their structure, functionality and current state to users of assistive technologies (such as screen readers). As a best practice, we recommend using `<button>` elements for the tabs, as these are controls that trigger a dynamic change, rather than links that navigate to a new page or location.

docs/content/components/offcanvas.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,8 @@ Since the offcanvas panel is conceptually a modal dialog, be sure to add `aria-l
253253

254254
## Usage
255255

256+
{{< bootstrap-compatibility >}}
257+
256258
The offcanvas plugin utilizes a few classes and attributes to handle the heavy lifting:
257259

258260
- `.offcanvas` hides the content

docs/content/components/popovers.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,8 @@ For disabled popover triggers, you may also prefer `data-coreui-trigger="hover f
137137

138138
## Usage
139139

140+
{{< bootstrap-compatibility >}}
141+
140142
Enable popovers via JavaScript:
141143

142144
```js

0 commit comments

Comments
 (0)