Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/blog.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <markd.otto@gmail.com>2022-09-07 20:26:56 +0300
committerGitHub <noreply@github.com>2022-09-07 20:26:56 +0300
commitfa441735f8cecdc1f36e4862654dd4bb119b1f68 (patch)
tree5398addc7b0bbde05d3f5483d0bc1f940ffb7f66
parent23070d703f0c5f03997a99770525df52ac113039 (diff)
Add v5.2.1 post (#306)
* Draft v5.2.1 post * Fix odd font-size * Update src/content/posts/2022/bootstrap-5-2-1.md Co-authored-by: Julien Déramond <juderamond@gmail.com> * Review feedback addressed, reorganize changes * Mention other changes and updates, adjust font size and spacing * edits * update content * Mention accordiong change * Add another entry, add music video * Update bootstrap-5-2-1.md * Remove for now Co-authored-by: Julien Déramond <juderamond@gmail.com>
-rw-r--r--src/assets/scss/style.scss11
-rw-r--r--src/content/posts/2022/bootstrap-5-2-1.md97
-rw-r--r--src/static/assets/img/2022/09/bnpm.pngbin0 -> 152813 bytes
-rw-r--r--src/static/assets/img/2022/09/examples.pngbin0 -> 519279 bytes
4 files changed, 103 insertions, 5 deletions
diff --git a/src/assets/scss/style.scss b/src/assets/scss/style.scss
index 93f2722f..f25ea463 100644
--- a/src/assets/scss/style.scss
+++ b/src/assets/scss/style.scss
@@ -114,10 +114,6 @@ table {
.posts-container {
max-width: 760px;
-
- @media (min-width: 1024px) {
- font-size: 18px;
- }
}
.bd-gutter {
@@ -158,6 +154,11 @@ table {
li {
margin-bottom: .25rem;
}
+
+ h2 {
+ margin-top: 1.5rem;
+ @include font-size(1.75rem);
+ }
}
// Related posts
@@ -183,7 +184,7 @@ table {
// Special case the opening paragraph
.post > p:first-of-type,
.post > img:first-child + p {
- font-size: 130%;
+ font-size: 133.333333%;
color: $gray-700;
}
diff --git a/src/content/posts/2022/bootstrap-5-2-1.md b/src/content/posts/2022/bootstrap-5-2-1.md
new file mode 100644
index 00000000..de8733c9
--- /dev/null
+++ b/src/content/posts/2022/bootstrap-5-2-1.md
@@ -0,0 +1,97 @@
+---
+author: mdo
+date: "2022-09-07T16:00:00Z"
+title: Bootstrap 5.2.1
+keywords:
+ - bootstrap
+ - release
+---
+
+Bootstrap v5.2.1 is here with fixes from our latest minor release, v5.2. As a patch release, these changes are limited to bug fixes, documentation updates, and some dependency updates.
+
+We've also continued to iterate on a few other projects to help folks get up and running with Bootstrap with npm, other JS frameworks, and various build tools. Keep reading to learn more.
+
+## Key changes
+
+We've **updated our `calc()` functions** to work around an [apparent bug in `postcss-values-parser`](https://github.com/shellscape/postcss-values-parser/issues/138) that prevented our source Sass files from compiling properly when building with React and PostCSS. The fix was to reverse the order of our multiplication inside `calc()` functions. Be aware you may need to make similar [modifications](https://github.com/twbs/bootstrap/pull/37079) depending on your own customizations.
+
+We've also [addressed some longstanding issues around button focus and active styling](https://github.com/twbs/bootstrap/pull/37026), in particular for checkbox and radio buttons. On mobile devices, input-based buttons have trouble shedding their focus styles. This has been resolved in v5.2.1 with a change from `:focus` to `:focus-visible` for our `.btn`s. **Now, checkbox and radio buttons no longer change their `background-color` on `:focus-visible` and they receive no `:hover` styling.** Regular `.btn`s still have their familiar hover and focus styles.
+
+We debated not including the button focus change in v5.2.1, but felt it was important enough to close several bugs. Let us know what you think and we'll continue to refine our implementation.
+
+## Highlights
+
+In addition to the changes above, we've fixed bugs across several components:
+
+- **Accordion**
+ - Update `color` value to use the `$accordion-button-color` Sass variable instead of our color contrast function
+- **Buttons**
+ - Added a `transparent` default hover border color CSS variable for buttons to fix a visual regression
+ - `.btn-link` no longer has a gradient when `$enable-gradients` is set to `true`
+- **Forms**
+ - Input groups have updated `z-index` values to ensure proper rendering of validated form fields
+ - Floating labels now reset their `text-align` to ensure consistent styling
+- **List Groups**
+ - Horizontal list groups with only one child now render the correct `border-radius`
+ - Modified the `list-group-item` selectors to better support nested imports of Bootstrap's CSS
+- **Modals**
+ - Updated event listeners to ignore clicks on scrollbar clicks, clicks that start inside `.modal-dialog` but end outside it, and respond to clicks that start and end outside `.modal-dialog`
+- **Pagination**
+ - Fixed incorrect `border-radius` values inside pagination components
+- **Scrollspy**
+ - Scrollspy threshold option is now configurable
+- **Tooltips & Popovers**
+ - Reverted some tooltip plugin updates to prevent issues with `selector`, dynamic content, and disposed tooltips using `title`
+ - Fixed `trigger: "manual"` showing and immediately hiding when calling `toggle()`
+
+## Dependencies
+
+- Updated Autoprefixer to fix warnings of the `color-adjust` property (thanks to [@julien-deramond](https://github.com/julien-deramond/) on our team for reporting an issue upstream here)
+
+## Docs
+
+- Searching our docs on mobile has been improved with the search field now always visible on responsive, narrow viewports
+- Removed links to and mentions of Slack from across the codebase, as we intend to shutter Slack in favor of GitHub Discussions
+- Reintroduced proper `outline` styles for docs code samples and buttons when `:not(:focus-visible)`
+
+## Farewell, Slack!
+
+As mentioned over a month ago, we made the decision to close down our community Slack channel. Slack isn't great at managing a large scale community and it's prohibitively expensive as well for a community the size of ours (the Slack was over 45,000 people!). Instead of using Slack or similar tool, we're encouraging folks to use our Discussions tab on GitHub.
+
+**[Explore Bootstrap discussions](https://github.com/twbs/bootstrap/discussions)**
+
+## Examples repo
+
+[![Examples](/assets/img/2022/09/examples.png)](https://github.com/twbs/examples)
+
+Make sure to checkout (pun intended!) our latest project, the [twbs/examples repository](https://github.com/twbs/examples)! The examples project includes functional demos for all sorts of environments and JS frameworks, with more planned! You can even open every example in StackBlitz and edit them in the browser.
+
+- [Starter](https://github.com/twbs/examples/tree/main/starter/) – CDN links for our CSS and JS
+- [Sass & JS](https://github.com/twbs/examples/tree/main/sass-js/) — Import Sass, Autoprefixer, Stylelint, and our JS bundle via npm
+- [Sass & ESM JS](https://github.com/twbs/examples/tree/main/sass-js-esm/) — Import Sass, Autoprefixer, and Stylelint via npm, and then load our ESM JS with a shim
+- [Webpack](https://github.com/twbs/examples/tree/main/webpack/) - Import and bundle Sass and JS with Webpack
+- [Parcel](https://github.com/twbs/examples/tree/main/parcel/) - Sass, JS via Parcel
+- [Vite](https://github.com/twbs/examples/tree/main/vite/) - Sass, JS via Vite
+- [Bootstrap Icons font](https://github.com/twbs/examples/tree/main/icons-font/) - Import and compile Sass, Stylelint, PurgeCSS, and our icon font
+
+**Have an idea for a new starter example?** Feel free to open an issue or pull request!
+
+## v4 starter project
+
+[![npm starter](/assets/img/2022/09/bnpm.png)](https://github.com/twbs/bootstrap-npm-starter)
+
+We've shipped a v2.0.0 update to the [twbs/bootstrap-npm-starter project](https://github.com/twbs/bootstrap-npm-starter). This release includes Bootstrap v4.6.2, Bootstrap Icons v1.9.1, a new live reload feature for local development, and several dependency updates. This project will remain dedicated to Bootstrap 4 while our [twbs/examples](https://github.com/twbs/examples) repo will focus on v5 and future major releases.
+
+## Get the release
+
+**Head to <https://getbootstrap.com> for the latest.** It's also been pushed to npm:
+
+```sh
+npm i bootstrap@v5.2.1
+```
+
+[Read the GitHub v5.2.1 changelog](https://github.com/twbs/bootstrap/releases/tag/v5.2.1) for a complete list of changes in this release.
+
+## Support the team
+
+Visit our [Open Collective page]({{< param "opencollective" >}}) or our [team members](https://github.com/orgs/twbs/people)' GitHub profiles to help support the maintainers contributing to Bootstrap.
diff --git a/src/static/assets/img/2022/09/bnpm.png b/src/static/assets/img/2022/09/bnpm.png
new file mode 100644
index 00000000..89e95b58
--- /dev/null
+++ b/src/static/assets/img/2022/09/bnpm.png
Binary files differ
diff --git a/src/static/assets/img/2022/09/examples.png b/src/static/assets/img/2022/09/examples.png
new file mode 100644
index 00000000..41a0899f
--- /dev/null
+++ b/src/static/assets/img/2022/09/examples.png
Binary files differ