Skip to content

Commit 84009ff

Browse files
committed
refactor: update to Bootstrap v5.0.2
2 parents dd49796 + a9ae744 commit 84009ff

File tree

212 files changed

+8930
-7588
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

212 files changed

+8930
-7588
lines changed

.bundlewatch.config.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,35 +2,35 @@
22
"files": [
33
{
44
"path": "./dist/css/coreui-grid.css",
5-
"maxSize": "7 kB"
5+
"maxSize": "7.25 kB"
66
},
77
{
88
"path": "./dist/css/coreui-grid.min.css",
9-
"maxSize": "6 kB"
9+
"maxSize": "6.5 kB"
1010
},
1111
{
1212
"path": "./dist/css/coreui-reboot.css",
13-
"maxSize": "2.25 kB"
13+
"maxSize": "2 kB"
1414
},
1515
{
1616
"path": "./dist/css/coreui-reboot.min.css",
1717
"maxSize": "2 kB"
1818
},
1919
{
2020
"path": "./dist/css/coreui-utilities.css",
21-
"maxSize": "7.5 kB"
21+
"maxSize": "7.25 kB"
2222
},
2323
{
2424
"path": "./dist/css/coreui-utilities.min.css",
25-
"maxSize": "6.75 kB"
25+
"maxSize": "6.6 kB"
2626
},
2727
{
2828
"path": "./dist/css/coreui.css",
29-
"maxSize": "24.25 kB"
29+
"maxSize": "25 kB"
3030
},
3131
{
3232
"path": "./dist/css/coreui.min.css",
33-
"maxSize": "22.25 kB"
33+
"maxSize": "22.75 kB"
3434
},
3535
{
3636
"path": "./dist/js/coreui.bundle.js",

.github/CONTRIBUTING.md

Lines changed: 51 additions & 112 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,24 @@
1-
# Contributing to Bootstrap
1+
# Contributing to CoreUI
22

3-
Looking to contribute something to Bootstrap? **Here's how you can help.**
3+
Looking to contribute something to CoreUI? **Here's how you can help.**
44

5-
Please take a moment to review this document in order to make the contribution
6-
process easy and effective for everyone involved.
5+
Please take a moment to review this document in order to make the contribution process easy and effective for everyone involved.
76

8-
Following these guidelines helps to communicate that you respect the time of
9-
the developers managing and developing this open source project. In return,
10-
they should reciprocate that respect in addressing your issue or assessing
7+
Following these guidelines helps to communicate that you respect the time of the developers managing and developing this open source project. In return, they should reciprocate that respect in addressing your issue or assessing
118
patches and features.
129

13-
1410
## Using the issue tracker
1511

16-
The [issue tracker](https://github.com/twbs/bootstrap/issues) is
12+
The [issue tracker](https://github.com/coreui/coreui/issues) is
1713
the preferred channel for [bug reports](#bug-reports), [features requests](#feature-requests)
1814
and [submitting pull requests](#pull-requests), but please respect the following
1915
restrictions:
2016

21-
* Please **do not** use the issue tracker for personal support requests. Stack
22-
Overflow ([`bootstrap-5`](https://stackoverflow.com/questions/tagged/bootstrap-5) tag),
23-
[Slack](https://bootstrap-slack.herokuapp.com/) or [IRC](README.md#community) are better places to get help.
24-
25-
* Please **do not** derail or troll issues. Keep the discussion on topic and
26-
respect the opinions of others.
17+
* Please **do not** use the issue tracker for personal support requests.
2718

2819
* Please **do not** post comments consisting solely of "+1" or ":thumbsup:".
29-
Use [GitHub's "reactions" feature](https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/)
30-
instead. We reserve the right to delete comments which violate this rule.
31-
32-
* Please **do not** open issues regarding the official themes offered on <https://themes.getbootstrap.com/>.
33-
Instead, please email any questions or feedback regarding those themes to `themes AT getbootstrap DOT com`.
34-
35-
36-
## Issues and labels
37-
38-
Our bug tracker utilizes several labels to help organize and identify issues. Here's what they represent and how we use them:
39-
40-
- `browser bug` - Issues that are reported to us, but actually are the result of a browser-specific bug. These are diagnosed with reduced test cases and result in an issue opened on that browser's own bug tracker.
41-
- `confirmed` - Issues that have been confirmed with a reduced test case and identify a bug in Bootstrap.
42-
- `css` - Issues stemming from our compiled CSS or source Sass files.
43-
- `docs` - Issues for improving or updating our documentation.
44-
- `examples` - Issues involving the example templates included in our docs.
45-
- `feature` - Issues asking for a new feature to be added, or an existing one to be extended or modified. New features require a minor version bump (e.g., `v3.0.0` to `v3.1.0`).
46-
- `build` - Issues with our build system, which is used to run all our tests, concatenate and compile source files, and more.
47-
- `help wanted` - Issues we need or would love help from the community to resolve.
48-
- `js` - Issues stemming from our compiled or source JavaScript files.
49-
- `meta` - Issues with the project itself or our GitHub repository.
50-
51-
For a complete look at our labels, see the [project labels page](https://github.com/twbs/bootstrap/labels).
52-
20+
Use [GitHub's "reactions" feature](https://github.com/blog/2119-add-reactions-to-pull-requests-issues-and-comments)
21+
instead.
5322

5423
## Bug reports
5524

@@ -58,18 +27,13 @@ Good bug reports are extremely helpful, so thanks!
5827

5928
Guidelines for bug reports:
6029

61-
0. **[Validate your HTML](https://html5.validator.nu/)** to ensure your
62-
problem isn't caused by a simple error in your own code.
30+
0. **Validate and lint your code** &mdash; to ensure your problem isn't caused by a simple error in your own code.
6331

64-
1. **Use the GitHub issue search** &mdash; check if the issue has already been
65-
reported.
32+
1. **Use the GitHub issue search** &mdash; check if the issue has already been reported.
6633

67-
2. **Check if the issue has been fixed** &mdash; try to reproduce it using the
68-
latest `main` (or `v4-dev` branch if the issue is about v4) in the repository.
34+
2. **Check if the issue has been fixed** &mdash; try to reproduce it using the latest `master` or development branch in the repository.
6935

70-
3. **Isolate the problem** &mdash; ideally create a [reduced test
71-
case](https://css-tricks.com/reduced-test-cases/) and a live example.
72-
[This JS Bin](https://jsbin.com/lolome/edit?html,output) is a helpful template.
36+
3. **Isolate the problem** &mdash; ideally create a [reduced test case](https://css-tricks.com/reduced-test-cases/) and a live example. [This JS Bin](http://jsbin.com/lefey/1/edit?html,output) is a helpful template.
7337

7438

7539
A good bug report shouldn't leave others needing to chase you up for more
@@ -97,24 +61,13 @@ Example:
9761
> causing the bug, and potential solutions (and your opinions on their
9862
> merits).
9963
100-
### Reporting upstream browser bugs
101-
102-
Sometimes bugs reported to us are actually caused by bugs in the browser(s) themselves, not bugs in Bootstrap per se.
103-
104-
| Vendor(s) | Browser(s) | Rendering engine | Bug reporting website(s) | Notes |
105-
| ------------- | ---------------------------- | ---------------- | ------------------------------------------------------ | -------------------------------------------------------- |
106-
| Mozilla | Firefox | Gecko | https://bugzilla.mozilla.org/enter_bug.cgi | "Core" is normally the right product option to choose. |
107-
| Apple | Safari | WebKit | https://bugs.webkit.org/enter_bug.cgi?product=WebKit | In Apple's bug reporter, choose "Safari" as the product. |
108-
| Google, Opera | Chrome, Chromium, Opera v15+ | Blink | https://bugs.chromium.org/p/chromium/issues/list | Click the "New issue" button. |
109-
| Microsoft | Edge | Blink | https://developer.microsoft.com/en-us/microsoft-edge/ | Go to "Help > Send Feedback" from the browser |
110-
111-
11264
## Feature requests
11365

114-
Feature requests are welcome. But take a moment to find out whether your idea
115-
fits with the scope and aims of the project. It's up to *you* to make a strong
116-
case to convince the project's developers of the merits of this feature. Please
117-
provide as much detail and context as possible.
66+
Feature requests are welcome. Before opening a feature request, please take a
67+
moment to find out whether your idea fits with the scope and aims of the
68+
project. It's up to *you* to make a strong case to convince the project's
69+
developers of the merits of this feature. Please provide as much detail
70+
and context as possible.
11871

11972

12073
## Pull requests
@@ -123,48 +76,31 @@ Good pull requests—patches, improvements, new features—are a fantastic
12376
help. They should remain focused in scope and avoid containing unrelated
12477
commits.
12578

126-
**Please ask first** before embarking on any **significant** pull request (e.g.
79+
**Please ask first** before embarking on any significant pull request (e.g.
12780
implementing features, refactoring code, porting to a different language),
12881
otherwise you risk spending a lot of time working on something that the
129-
project's developers might not want to merge into the project. For trivial
130-
things, or things that don't require a lot of your time, you can go ahead and
131-
make a PR.
132-
133-
Please adhere to the [coding guidelines](#code-guidelines) used throughout the
134-
project (indentation, accurate comments, etc.) and any other requirements
135-
(such as test coverage).
136-
137-
**Do not edit `bootstrap.css` or `bootstrap.js`, and do not commit
138-
any dist files (`dist/` or `js/dist`).** Those files are automatically generated by our build tools. You should
139-
edit the source files in [`/bootstrap/scss/`](https://github.com/twbs/bootstrap/tree/main/scss)
140-
and/or [`/bootstrap/js/src/`](https://github.com/twbs/bootstrap/tree/main/js/src) instead.
141-
142-
Similarly, when contributing to Bootstrap's documentation, you should edit the
143-
documentation source files in
144-
[the `/bootstrap/site/content/docs/` directory of the `main` branch](https://github.com/twbs/bootstrap/tree/main/site/content/docs).
145-
**Do not edit the `gh-pages` branch.** That branch is generated from the
146-
documentation source files and is managed separately by the Bootstrap Core Team.
82+
project's developers might not want to merge into the project.
14783

14884
Adhering to the following process is the best way to get your work
14985
included in the project:
15086

151-
1. [Fork](https://help.github.com/articles/fork-a-repo/) the project, clone your fork,
87+
1. [Fork](https://help.github.com/fork-a-repo/) the project, clone your fork,
15288
and configure the remotes:
15389

15490
```bash
15591
# Clone your fork of the repo into the current directory
156-
git clone https://github.com/<your-username>/bootstrap.git
92+
git clone https://github.com/<your-username>/coreui.git
15793
# Navigate to the newly cloned directory
158-
cd bootstrap
94+
cd coreui
15995
# Assign the original repo to a remote called "upstream"
160-
git remote add upstream https://github.com/twbs/bootstrap.git
96+
git remote add upstream https://github.com/coreui/coreui.git
16197
```
16298

16399
2. If you cloned a while ago, get the latest changes from upstream:
164100

165101
```bash
166-
git checkout main
167-
git pull upstream main
102+
git checkout master
103+
git pull upstream master
168104
```
169105

170106
3. Create a new topic branch (off the main project development branch) to
@@ -175,15 +111,15 @@ included in the project:
175111
```
176112

177113
4. Commit your changes in logical chunks. Please adhere to these [git commit
178-
message guidelines](https://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html)
179-
or your code is unlikely be merged into the main project. Use Git's
180-
[interactive rebase](https://help.github.com/articles/about-git-rebase/)
114+
message guidelines](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html)
115+
or your code is unlikely to be merged into the main project. Use Git's
116+
[interactive rebase](https://help.github.com/articles/interactive-rebase)
181117
feature to tidy up your commits before making them public.
182118

183119
5. Locally merge (or rebase) the upstream development branch into your topic branch:
184120

185121
```bash
186-
git pull [--rebase] upstream main
122+
git pull [--rebase] upstream master
187123
```
188124

189125
6. Push your topic branch up to your fork:
@@ -192,48 +128,51 @@ included in the project:
192128
git push origin <topic-branch-name>
193129
```
194130

195-
7. [Open a Pull Request](https://help.github.com/articles/about-pull-requests/)
196-
with a clear title and description against the `main` branch.
131+
7. [Open a Pull Request](https://help.github.com/articles/using-pull-requests/)
132+
with a clear title and description against the `master` branch.
197133

198134
**IMPORTANT**: By submitting a patch, you agree to allow the project owners to
199-
license your work under the terms of the [MIT License](../LICENSE) (if it
200-
includes code changes) and under the terms of the
201-
[Creative Commons Attribution 3.0 Unported License](https://creativecommons.org/licenses/by/3.0/)
202-
(if it includes documentation changes).
135+
license your work under the terms of the [MIT License](LICENSE).
136+
137+
### Semantic Git commit messages
203138

139+
Inspired by Sparkbox's awesome article on
140+
[semantic commit messages](http://seesparkbox.com/foundry/semantic_commit_messages).
141+
Please use following commit message format.
142+
143+
* chore (updating npm tasks etc; no production code change) -> ```git test -m 'chore: commit-message-here'```
144+
* docs (changes to documentation) -> ```git commit -m 'docs: commit-message-here'```
145+
* feat (new feature) -> ```git commit -m 'feat: commit-message-here'```
146+
* fix (bug fix) -> ```git commit -m 'fix: commit-message-here'```
147+
* refactor (refactoring production code) -> ```git commit -m 'refactor: commit-message-here'```
148+
* style (formatting, missing semi colons, etc; no code change) -> ```git commit -m 'style: commit-message-here'```
149+
* test (adding missing tests, refactoring tests; no production code change) -> ```git test -m 'refactor: commit-message-here'```
204150

205151
## Code guidelines
206152

207153
### HTML
208154

209-
[Adhere to the Code Guide.](https://codeguide.co/#html)
155+
[Adhere to the Code Guide.](http://codeguide.co/#html)
210156

211157
- Use tags and elements appropriate for an HTML5 doctype (e.g., self-closing tags).
212158
- Use CDNs and HTTPS for third-party JS when possible. We don't use protocol-relative URLs in this case because they break when viewing the page locally via `file://`.
213159
- Use [WAI-ARIA](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA) attributes in documentation examples to promote accessibility.
214160

215161
### CSS
216162

217-
[Adhere to the Code Guide.](https://codeguide.co/#css)
163+
[Adhere to the Code Guide.](http://codeguide.co/#css)
218164

219-
- When feasible, default color palettes should comply with [WCAG color contrast guidelines](https://www.w3.org/TR/WCAG20/#visual-audio-contrast).
220-
- Except in rare cases, don't remove default `:focus` styles (via e.g. `outline: none;`) without providing alternative styles. See [this A11Y Project post](https://www.a11yproject.com/posts/2013-01-25-never-remove-css-outlines/) for more details.
165+
- When feasible, default color palettes should comply with [WCAG color contrast guidelines](http://www.w3.org/TR/WCAG20/#visual-audio-contrast).
166+
- Except in rare cases, don't remove default `:focus` styles (via e.g. `outline: none;`) without providing alternative styles. See [this A11Y Project post](http://a11yproject.com/posts/never-remove-css-outlines) for more details.
221167

222168
### JS
223169

224170
- No semicolons (in client-side JS)
225171
- 2 spaces (no tabs)
226172
- strict mode
227173
- "Attractive"
228-
229-
### Checking coding style
230-
231-
Run `npm run test` before committing to ensure your changes follow our coding standards.
232-
174+
- Don't use [jQuery event alias convenience methods](https://github.com/jquery/jquery/blob/master/src/event/alias.js) (such as `$().focus()`). Instead, use [`$().trigger(eventType, ...)`](http://api.jquery.com/trigger/) or [`$().on(eventType, ...)`](http://api.jquery.com/on/), depending on whether you're firing an event or listening for an event. (For example, `$().trigger('focus')` or `$().on('focus', function (event) { /* handle focus event */ })`) We do this to be compatible with custom builds of jQuery where the event aliases module has been excluded.
233175

234176
## License
235177

236-
By contributing your code, you agree to license your contribution under the [MIT License](../LICENSE).
237-
By contributing to the documentation, you agree to license your contribution under the [Creative Commons Attribution 3.0 Unported License](https://creativecommons.org/licenses/by/3.0/).
238-
239-
Prior to v3.1.0, Bootstrap's code was released under the Apache License v2.0.
178+
By contributing your code, you agree to license your contribution under the [MIT License](LICENSE).

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: Bug report
3-
about: Tell us about a bug you may have identified in Bootstrap.
3+
about: Tell us about a bug you may have identified in CoreUI.
44
title: ''
55
labels: ''
66
assignees: ''
@@ -9,9 +9,9 @@ assignees: ''
99

1010
Before opening:
1111

12-
- [Search for duplicate or closed issues](https://github.com/twbs/bootstrap/issues?utf8=%E2%9C%93&q=is%3Aissue)
12+
- [Search for duplicate or closed issues](https://github.com/coreui/coreui/issues?utf8=%E2%9C%93&q=is%3Aissue)
1313
- [Validate](https://html5.validator.nu/) any HTML to avoid common problems
14-
- Read the [contributing guidelines](https://github.com/twbs/bootstrap/blob/main/.github/CONTRIBUTING.md)
14+
- Read the [contributing guidelines](https://github.com/coreui/coreui/blob/main/.github/CONTRIBUTING.md)
1515

1616
Bug reports must include:
1717

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
contact_links:
22
- name: Ask a question
3-
url: https://github.com/twbs/bootstrap/discussions/new
4-
about: Ask and discuss questions with other Bootstrap community members
3+
url: https://community.coreui.io/
4+
about: Ask and discuss questions with other CoreUI community members

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: Feature request
3-
about: Suggest an idea for a new feature in Bootstrap.
3+
about: Suggest an idea for a new feature in CoreUI.
44
title: ''
55
labels: feature
66
assignees: ''
@@ -9,8 +9,8 @@ assignees: ''
99

1010
Before opening:
1111

12-
- [Search for duplicate or closed issues](https://github.com/twbs/bootstrap/issues?utf8=%E2%9C%93&q=is%3Aissue)
13-
- Read the [contributing guidelines](https://github.com/twbs/bootstrap/blob/main/.github/CONTRIBUTING.md)
12+
- [Search for duplicate or closed issues](https://github.com/coreui/coreui/issues?utf8=%E2%9C%93&q=is%3Aissue)
13+
- Read the [contributing guidelines](https://github.com/coreui/coreui/blob/main/.github/CONTRIBUTING.md)
1414

1515
Feature requests must include:
1616

.github/SUPPORT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ See the [contributing guidelines](CONTRIBUTING.md) for sharing bug reports.
77
For general troubleshooting or help getting started:
88

99
- Join [the official Slack room](https://bootstrap-slack.herokuapp.com/).
10-
- Chat with fellow Bootstrappers in IRC. On the `irc.freenode.net` server, in the `##bootstrap` channel.
10+
- Chat with fellow Bootstrappers in IRC. On the `irc.libera.chat` server, in the `#bootstrap` channel.
1111
- Ask and explore Stack Overflow with the [`bootstrap-5`](https://stackoverflow.com/questions/tagged/bootstrap-5) tag.

.github/workflows-turnoff/browserstack.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ env:
1010
jobs:
1111
browserstack:
1212
runs-on: ubuntu-latest
13-
if: github.repository == 'twbs/bootstrap' && (!contains(github.event.commits[0].message, '[ci skip]') && !contains(github.event.commits[0].message, '[skip ci]'))
13+
if: github.repository == 'coreui/coreui' && (!contains(github.event.commits[0].message, '[ci skip]') && !contains(github.event.commits[0].message, '[skip ci]'))
1414
timeout-minutes: 30
1515

1616
steps:

.github/workflows-turnoff/release-notes.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
jobs:
99
update_release_draft:
1010
runs-on: ubuntu-latest
11-
if: github.repository == 'twbs/bootstrap'
11+
if: github.repository == 'coreui/coreui'
1212
steps:
1313
- uses: release-drafter/release-drafter@v5
1414
env:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ Editor preferences are available in the [editor config](https://github.com/coreu
151151

152152
Stay up to date on the development of CoreUI and reach out to the community with these helpful resources.
153153

154-
- Read and subscribe to [The Official CoreUI Blog](https://coreui.io/blog/).
154+
- Read and subscribe to [The Official CoreUI Blog](https://blog.coreui.io/).
155155
- Join [the official Community](https://community.coreui.io/).
156156

157157
You can also follow [@core_ui on Twitter](https://twitter.com/core_ui).

0 commit comments

Comments
 (0)