Skip to content

Commit 5a86f47

Browse files
committed
feat: add Bootstrap compatibility and Bootstrap theme
1 parent b2e9d03 commit 5a86f47

19 files changed

+65
-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
@@ -145,6 +145,8 @@ When an alert is dismissed, the element is completely removed from the page stru
145145

146146
## JavaScript behavior
147147

148+
{{< bootstrap-compatibility >}}
149+
148150
### Initialize
149151

150152
Initialize elements as alerts

docs/content/components/carousel.md

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

295295
## Usage
296296

297+
{{< bootstrap-compatibility >}}
298+
297299
### Via data attributes
298300

299301
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
@@ -106,6 +106,8 @@ If your control element is targeting a single collapsible element – i.e., the
106106
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.
107107
## Usage
108108

109+
{{< bootstrap-compatibility >}}
110+
109111
The collapse plugin utilizes a few classes to handle the heavy lifting:
110112

111113
- `.collapse` hides the content

docs/content/components/dropdowns.md

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

998998
## Usage
999999

1000+
{{< bootstrap-compatibility >}}
1001+
10001002
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.
10011003

10021004
{{< callout info >}}

docs/content/components/list-group.md

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

304304
## JavaScript behavior
305305

306+
{{< bootstrap-compatibility >}}
307+
306308
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.
307309

308310
<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
@@ -757,6 +757,8 @@ Another override is the option to pop up a modal that covers the user viewport,
757757

758758
## Usage
759759

760+
{{< bootstrap-compatibility >}}
761+
760762
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.
761763

762764
### Via data attributes

docs/content/components/navs-tabs.md

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

350350
## JavaScript behavior
351351

352+
{{< bootstrap-compatibility >}}
353+
352354
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.
353355

354356
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
@@ -250,6 +250,8 @@ Since the offcanvas panel is conceptually a modal dialog, be sure to add `aria-l
250250

251251
## Usage
252252

253+
{{< bootstrap-compatibility >}}
254+
253255
The offcanvas plugin utilizes a few classes and attributes to handle the heavy lifting:
254256

255257
- `.offcanvas` hides the content

docs/content/components/popovers.md

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

134134
## Usage
135135

136+
{{< bootstrap-compatibility >}}
137+
136138
Enable popovers via JavaScript:
137139

138140
```js

0 commit comments

Comments
 (0)