Skip to content

v6: More utilities API, docs, tests#42381

Open
mdo wants to merge 20 commits intov6-devfrom
v6-utils-api-cleanup
Open

v6: More utilities API, docs, tests#42381
mdo wants to merge 20 commits intov6-devfrom
v6-utils-api-cleanup

Conversation

@mdo
Copy link
Copy Markdown
Member

@mdo mdo commented May 1, 2026

No description provided.

@mdo mdo added this to v6.0.0 May 1, 2026
@mdo mdo requested a review from a team as a code owner May 1, 2026 16:45
@github-project-automation github-project-automation Bot moved this to Inbox in v6.0.0 May 1, 2026
Comment thread site/src/content/docs/utilities/api.mdx
Comment thread scss/mixins/_utilities.scss Outdated
@julien-deramond
Copy link
Copy Markdown
Member

I introduced with b8edba4 a new generate-utilities-loop mixin so that it can be also used in our tests to improve the regression detection for responsive/print/dark/enabled and avoid silently shipping a loop condition bug. Feel free to revert if you think that's not useful.

Comment thread scss/_utilities.scss
Comment thread scss/_utilities.scss
$utilities,
(
// my-bootstrap.scss
@use "bootstrap" with (
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Room for improvement in a follow-up PR. In this docs, we are mixing @use "bootstrap" and bootstrap/scss/utilities. Both are valid but I'm not sure we explain really when we should use one or the other, when you want full framework compile in one entrypoint or when doing focused utility-only builds.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The way the utilities are built seems powerful, but it possibly introduces mutable local state via CSS variable inheritance. I haven't tested it but I'd say a parent with rounded-size can unintentionally affect descendants using side-only raidus utilities. Maybe we could add an "inheritance caveat" example.

coliff and others added 11 commits May 3, 2026 13:50
Co-authored-by: Julien Déramond <juderamond@gmail.com>
* Adjust toast copy, placeholder, and font var

Update docs and styles: change toast example text to use "accent" wording, mark the default toast placement option as disabled to prevent it being selected as a valid value, and switch the table font variable from --bs-font-monospace to the standardized --bs-font-mono in _content.scss.

* fix typo

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@mdo mdo requested a review from a team as a code owner May 3, 2026 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Inbox

Development

Successfully merging this pull request may close these issues.

3 participants