0
Fork 0
mirror of https://github.com/twbs/bootstrap.git synced 2026-11-16 06:58:43 +00:00

Compare commits

..

8 commits

Author SHA1 Message Date
Mark Otto
da71a10442
docs(migration): summarize the Alpha 2 changes (#43383)
Add top-level highlights before the detailed migration notes. Link
the main changes to their related guides and component docs so
readers can find the upgrade steps.
2026-11-14 12:51:09 -08:00
Mark Otto
5016ca00f0
Prose: space blockquote and details children, keep media aspect ratio (#43146)
* Prose: space blockquote and details children, keep media aspect ratio

Reboot removes margins from blockquote children, so paragraphs in a quote touch. Details had the same problem. Images with width and height attributes became distorted after max-width shrank them. Block-level media that are direct children stretched across the flex column. Also remove a duplicate img max-width rule.

* fix(prose): honor font weights and preserve excluded content

Custom font weights did not reach prose headings or description terms.
Use the shared weight tokens. Keep child spacing outside not-prose
content so an excluded block retains its own layout.

* docs(prose): show the elements covered by prose styles

The example used one-paragraph quotes and utility-styled placeholders,
so it did not show the spacing and media fixes. Add a disclosure,
plain images, heading code, and excluded content to show those rules.

* docs(prose): give the mobile example more room

The bordered example narrowed the text on phones. Extend its top and
bottom borders to the viewport edges, remove the side borders, and
add vertical padding. Keep its content aligned with the page gutters.

* docs(prose): replace the retired themes image

Use the existing Bootstrap and Vite illustration to show how images
keep their aspect ratio in Prose.
2026-11-14 12:49:40 -08:00
Mark Otto
0af63a38fb
chore(docs): remove retired themes images (#43380)
Use the documentation image in the hero example. Remove the themes
screenshots and the unused editor completion screenshot from v6.
2026-11-14 12:49:32 -08:00
Mark Otto
bf5eee882d
Prototype native gap gutters for the flexbox grid (#43282)
* feat(grid): prototype flexbox gutters with native gap

Size numbered columns and offsets against a gap-aware track width so
mixed spans fit the row without column padding or negative margins.
Keep standalone column widths and responsive row-column overrides.

Document the gutter migration and add real-browser layout coverage for
mixed spans, offsets, wrapping, nesting, RTL, and custom column counts.

* docs: highlight responsive grid columns in examples

Match column classes anywhere in the class attribute so responsive-only
columns receive the same background, border, and spacing as other grid
examples. Include the override locally while BUI carries the shared fix.

* docs: consolidate grid example highlighting

Keep the grid example override in the existing docs stylesheet and
include responsive equal-width columns such as sm:col. Remove the extra
stylesheet and retain the same styling for reordered column classes.

* ci: update bundle limits for gap-based grid sizing

Set the four affected CSS limits from measured gzip sizes. Round
limits up to the next 0.25 kB, as the bundlewatch helper does.

* test(grid): account for scrollbars in responsive layouts

Linux browsers reserve space for the vertical scrollbar. Use the
measured row width for expected column widths and offsets.

* fix(grid): preserve padded column widths and explain gap migration

Grid-only builds could wrap padded columns without Reboot. Include
padding and borders in column widths, and check both grid entry
points. Update migration and layout docs for native gaps, nested
rows, column breaks, and the gutter variables used by widths.

* docs(grid): remove container padding from previews

Native grid gaps no longer cancel container padding. Remove the
container classes from grid previews so the columns fill each
example. Keep the classes in the code and StackBlitz examples.

* docs(grid): remove containers from example snippets

Keep the grid previews, code snippets, and StackBlitz markup the
same. Remove container classes from the example source and remove
the preview-only filter. Explain when to add a parent container.

* docs(grid): keep example alignment in docs styles

Remove the outer wrappers and text-center classes from grid
examples. Center the labels with the component example styles.
Keep the code focused on rows, columns, and gaps.

* docs(grid): restore nested snippet indentation

MDX removes two leading spaces from the template lines. Add that
level back in the source so columns and their content remain
indented in the rendered snippets.
2026-11-14 12:49:08 -08:00
Mark Otto
b7c095bb78
fix(chip): use the theme color for keyboard focus (#43382)
Themed chip links and buttons showed the primary focus ring. Use
the chip theme for the ring and for its dismiss button. Keep the
global focus color when no theme applies.

Show themed interactive chips in the docs. Cover direct and
inherited themes, active chips, and dismiss buttons in both modes.
2026-11-14 12:49:04 -08:00
Mark Otto
f9a7a8941e
Unify chip input and editable Combobox (#43300)
* fix(combobox): support native form values and events

Multiple selections now submit one field per value. Commas stay in the
value, and an empty multiple selection submits no entries. Reuse an
explicit hidden input without removing application-owned fields.

Keep a stable field for input and change listeners. Sync fields before
notifications, restore initial selections on reset, and follow disabled
state and form ownership. Document the update and disposal contracts.

Forward Menu lifecycle events after its transitions. Keep native search
editing keys and cover the sticky search padding with logical CSS.

* feat(combobox): combine editable selection and chip entry

Search and select values from one editable field. Multiple selections
render as removable chips, and explicit free entry supports tags. Keep
query text separate from committed values and preserve native form data.

Use the existing Menu for positioning and lifecycle. Keep focus in the
editor while suggestions are highlighted. Preserve chip nodes, caret
positions, reset behavior, and input-method text during reconciliation.

Retire the separate Chips plugin and chip-input control. Keep static
chip styles and button-triggered Combobox markup. Document the alpha 2
markup, token, method, and event migration.

* fix(combobox): match chip fields to the default input height

Multiple values should fit the same row height as a normal input.
Use shared input spacing and typography, with smaller contextual chips.
Let the field grow when its values wrap.

Replace the text dismiss glyph with the SVG from the chip documentation.
Keep the named removal button and existing chip interaction behavior.

* fix(combobox): separate chip icon size from its hit area

Render the dismiss icon at 12px inside a 24px removal button. Move chips
closer to the field's inline start while keeping normal text padding
for an empty editor. Use logical spacing so the inset follows RTL.

* fix(combobox): tighten chip dismiss spacing

Use negative inline margins to bring the dismiss button closer to the
label and chip edge. Keep its 24px hit area and 12px SVG artwork.

* fix(combobox): derive chip corners from the field radius

Use a nested chip radius based on the wrapping field's radius, border,
and inset. Clamp the result at zero so square fields keep square chips.

* fix(combobox): balance chip insets within the field

Match the field's inline padding to its vertical padding when chips
are present. Derive chip corners from that inset and pull the dismiss
button's end margin in another 2px without reducing its hit area.

* fix(combobox): soften chip corners within balanced fields

Use half the field radius for chips so equal input padding does not
leave their corners nearly square. Keep square fields square.

* fix(combobox): restore chip selection and keyboard behavior

Highlight chips with the filled active state when users navigate or
select them. Restore modifier clicks, anchored ranges, select-all, and
deletion of highlighted chips. Keep native query editing and RTL keys.

Keep chip highlights separate from committed values. Report UI selection
through select.bs.combobox and restore the chip selection methods on
Combobox. Bulk removal honors each cancellation and emits one value
change before recovering focus.

Document the restored interaction and alpha migration. Cover range
anchors, duplicate values, disabled chips, reset, and disposal.

* fix(combobox): select chips on every focus path

Tabbing to a chip's remove button or focusing a chip directly should
show its primary selected state. Apply that highlight without changing
committed values, and dismiss the suggestion popup.

Guard focus controlled by range navigation and modifier clicks so it
does not collapse or undo the user's chip selection.

* fix(combobox): suppress inner chip focus outlines

Keep the filled selected chip and the wrapping field's focus ring as
focus indicators. Suppress the nested outlines on chips and their
remove buttons during keyboard navigation.

* fix(combobox): guard form and editor edge cases

Selection callbacks can change or dispose the component before an outer
operation completes. Stop stale selection and focus work after those
callbacks, and keep pending popup sizing from changing disposed markup.

Handle native composition events through the shared event system. Keep
unfinished input out of blur commits, reconcile completed composition,
and preserve focus after the editor loses it. Let the IME handle its
keys in both Combobox and Menu.

Follow external reset forms without a backing field, omit disabled
single options, and clear references to removed or disabled suggestions.
Add regressions and clarify the synchronous form update requirement.

* docs(chips): move standalone chips to Components

Chips can stand alone or appear within a form component. Place their
docs in Components and describe that wider use. Keep the old Forms URL
as a redirect, and update navigation and cross-links.

* fix(chips): limit hover feedback to interactive chips

Static chips change color and show a pointer cursor on hover, even
when they have no action. Keep static chips neutral and apply hover
feedback to links, buttons, and Combobox chips. A dismiss button keeps
its own hover state without changing the whole chip.

Add interactive examples and correct the documented CSS layer. Allow
for the extra selectors in the unminified CSS bundle budget.

* docs(combobox): lead with editable examples

Show search and selection in the input from the first example. Use
inputs for the shared examples and group the button variants together.
Use the editable markup in the form and setup guidance too.

* docs(combobox): restore the overview feature list

Describe editable inputs and button toggles in the original overview.
Include chips, free entry, form submission, and selection events.

* docs(combobox): preserve example indentation

Match the form field examples by adding the source indentation that
MDX strips. Record the convention in the docs guidance.

* fix(combobox): focus search directly when opening

Clicking a searchable combobox moved focus to the trigger before
the opening animation moved it to search.

Focus search as soon as the menu opens. Keep the trigger in the
tab order and return focus to it on Escape.

* docs(combobox): style the Language example label

* ci(combobox): fix bundle budgets and spelling

Round the three JavaScript bundle limits up to the next quarter
kilobyte to account for the search focus changes. Reword the docs
indentation rule so it passes the spelling check.

* fix(combobox): preserve resets and expose selection state

A canceled second reset could discard a completed reset. Keep each
pending reset until its own callback runs. Give button-mode options
listbox roles, handle Escape on the toggle, and restore chip focus
rings. Keep long values inside the field and use shared state tokens.

* fix(combobox): fit chips to the shared control size

Compact controls were 30px tall, but their fixed-height chips made
the multiple-selection field 34px tall. Derive chip and dismiss-button
heights from the space left by the control padding and borders. Check
compact, default, and spacious controls in the browser.

* docs(combobox): redirect chip input readers to the merged component

The former chip input page now points to Combobox. Explain the
consolidation at the top of that page and link the migration steps
for existing chip inputs.

* chore(combobox): account for the current main bundle size

The rebased build includes the merged Range and hash-link fixes.
Raise the three affected limits to the next standard budget step.
2026-11-12 12:48:15 -08:00
Mark Otto
9fce85dac5
Open collapses and tabs from URL hash links (#42835)
* feat(js): open collapses and tabs from URL hash links

Visiting a page with a fragment left opted-in collapses and tabs
closed, so deep links could not reveal their content.

Add `data-bs-hash` on the target. On load and hashchange, scroll
the trigger, show the panel, then scroll the target into view.

Fixes #34299

* fix(hash): keep fragment scrolling current after page load

A late import missed the initial fragment. An earlier opening could
also scroll after the user chose another fragment. Handle loaded
pages and ignore stale scroll callbacks. Wait for component opening
without leaving shown-event listeners after canceled events.
2026-11-11 20:32:05 -08:00
Mark Otto
026d2d599f
Fix Range refresh, native reset, and RTL alignment (#43305)
* fix(range): refresh decorations and honor form resets

Let applications refresh bubble configuration and datalist ticks with
update() while preserving constructor option priority. Keep drag events
on the value-only update path.

Refresh decorations after native form reset and release reset handlers
and pending work on disposal. Use a decorative div for the bubble so
WebKit cannot reset its inner markup as an output control.

Align the fill, bubble, and ticks with the native thumb in RTL layouts.

* docs(range): note accessible tick preset considerations

Record clickable labels as an optional future direction for sparse
presets. Require real buttons, keyboard activation, visible focus, and
usable targets while keeping ordinary ticks decorative by default.

* chore(range): account for the added bundle size

The Range refresh and reset fixes exceed three JavaScript bundle limits
by small amounts. Raise only those limits to the next standard quarter
kilobyte using the repository's bundlewatch helper.

* fix(range): honor shared radius and shadow tokens

Custom pill radii did not reach the range track or thumb. The track
also read a shadow token with no default. Use the shared tokens and
state the required prefix step for Sass builds.
2026-11-11 20:27:22 -08:00
68 changed files with 5066 additions and 2750 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 272 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 72 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 232 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 87 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 272 KiB