aboutsummaryrefslogtreecommitdiff
path: root/site
AgeCommit message (Collapse)AuthorFilesLines
2021-03-16Update modal's `show` method to accept `relatedTarget` as an argument (#33300)Anton1-0/+7
Co-authored-by: Rohit Sharma <[email protected]> Co-authored-by: XhmikosR <[email protected]>
2021-03-10Add migration guide entryMark Otto1-0/+4
2021-03-10Change from element selector to the opt-in classMark Otto1-4/+4
2021-03-10Add ol.list-group with psuedo-element numbersMark Otto1-0/+42
2021-03-10Fixes some copy around inline formsMark Otto1-1/+1
2021-03-10Mention .no-gutters removal in migration guide (#33332)Kyle Tsang1-0/+1
* Mention .no-gutters removal in migration guide * Update site/content/docs/5.0/migration.md Co-authored-by: Mark Otto <[email protected]>
2021-03-10Grammatically update the doc (#33267)Mohamed Khoualed1-4/+4
* Grammatically update the doc * Apply suggestions from code review Co-authored-by: Mark Otto <[email protected]>
2021-03-10Fix Flex utilities to add vertical space in exampleGarrett Johnson1-1/+1
The `justify-content-around` example is missing a `mb-3` class because it is not the last example.
2021-03-10Update the "Nonblocking files" section in the docsMartin Choutka1-1/+12
Added few paragraphs about optimizing FCP times, deferring non-critical JS and CSS, may update in the future again
2021-03-02Offcanvas as component (#29017)GeoSot9-7/+272
* Add a new offcanvas component * offcanvas.js: switch to string constants and `event.key` * Remove unneeded code * Sass optimizations * Fixes Make sure the element is hidden and not offscreen when inactive fix close icon negative margins Add content in right & bottom examples Re-fix bottom offcanvas height not to cover all viewport * Wording tweaks * update tests and offcanvas class * separate scrollbar functionality and use it in offcanvas * Update .bundlewatch.config.json * fix focus * update btn-close / fix focus on close * add aria-modal and role return focus on trigger when offcanvas is closed change body scrolling timings * move common code to reusable functions * add aria-labelledby * Replace lorem ipsum text * fix focus when offcanvas is closed * updates * revert modal, add tests for scrollbar * show backdrop by default * Update offcanvas.md * Update offcanvas CSS to better match modals - Add background-clip for borders - Move from outline to border (less clever, more consistent) - Add scss-docs in vars * Revamp offcanvas docs - Add static example to show and explain the components - Split live examples and rename them - Simplify example content - Expand docs notes elsewhere - Add sass docs * Add .offcanvas-title instead of .modal-title * Rename offcanvas example to offcanvas-navbar to reflect it's purpose * labelledby references title and not header * Add default shadow to offcanvas * enable offcanvas-body to fill all the remaining wrapper area * Be more descriptive, on Accessibility area * remove redundant classes * ensure in case of an already open offcanvas, not to open another one * bring back backdrop|scroll combinations * bring back toggling class * refactor scrollbar method, plus tests * add check if element is not full-width, according to #30621 * revert all in modal * use documentElement innerWidth * Rename classes to -start and -end Also copyedit some docs wording * omit some things on scrollbar * PASS BrowserStack tests -- IOS devices, Android devices and Browsers on Mac, hide scrollbar by default and appear it, only while scrolling. * Rename '_handleClosing' to '_addEventListeners' * change pipe usage to comma * change Data.getData to Data.get Co-authored-by: XhmikosR <[email protected]> Co-authored-by: Martijn Cuppens <[email protected]> Co-authored-by: Mark Otto <[email protected]>
2021-03-02Dropdown — Drop `flip` option (#33198)Rohit Sharma2-6/+2
2021-03-02Add an example of v4's media component in the flex utils docs (#33207)Mark Otto2-1/+29
* Add an example of v4's media component in the flex utils docs * Link to new example from Migration guide Co-authored-by: XhmikosR <[email protected]>
2021-02-22docs(migration): duplicated 5.0.0-beta2 heading (#33178)Gaël Poupard1-2/+0
2021-02-22Allow constructors to accept a CSS selector (#32245)Rohit Sharma2-0/+20
Co-authored-by: XhmikosR <[email protected]> Co-authored-by: Mark Otto <[email protected]>
2021-02-21Fix small typos / follow-up to #32630 (#33164)Patrick H. Lauke1-1/+1
2021-02-17Clarify docs around .navbar-brand (#33123)Mark Otto1-4/+12
- Add new headings and text for each example - Fixes #33072 by changing align-* class
2021-02-16overview: add missing EOF newline (#33098)XhmikosR1-1/+1
2021-02-16Clear duplicated class `border-0` (#32925)k-utsumi1-3/+7
* Clear duplicated class `border-0` * Update migration.md Co-authored-by: Mark Otto <[email protected]>
2021-02-15docs: add bootstrap5 zh-tw in translations (#33006)Ray1-0/+5
2021-02-15docs(examples): typo in offcanvas example in .bg-body (#33092)Gaël Poupard1-1/+1
Caught by pa11y-ci on Boosted (because of insufficient contrasts) :heart:
2021-02-15Fix typo in nav-tabs docs (#33081)Siju Samson1-1/+1
2021-02-11Docs improvements after beta2 (#33049)Gaël Poupard4-35/+35
* docs(carousel): double-spaces out there * docs(toasts): missing word, ins't it? * docs(cheatsheet): use buttons for carousels and tabs ion cheatsheets too Co-authored-by: XhmikosR <[email protected]>
2021-02-11Add Parcel Bundler doc (#30909)eldk2-0/+100
* Add Parcel Bundler doc * Update parcel.md * Improve parcel.md Co-authored-by: XhmikosR <[email protected]> Co-authored-by: Mark Otto <[email protected]>
2021-02-10Add Sass docs (variables, mixins, and loops) to most pages (#32747)Mark Otto44-16/+468
* WIP: Mention variables, mixins, and loops in docs * Add Sass sections to component pages * add sass docs for forms and content * Update buttons.md * Remove empty mixins sections * Massive update to utilities and some consistency changes Co-authored-by: XhmikosR <[email protected]>
2021-02-10Release v5.0.0-beta2 (#32467)v5.0.0-beta2XhmikosR1-1/+1
* Bump version to 5.0.0-beta2 * Dist
2021-02-10docs(scroll offset): improve a11y for sticky header (#33027)Gaël Poupard1-6/+6
Our current trick works great for headings or landmarks `:target`ed by links activation, however it still allows focus to be hidden under the sticky header. 1. Go to any docs page, 2. use a TOC link to scroll down the page, 3. then `Shift`+`Tab` to navigate backward using keyboard. You should see on some browsers (mainly Firefox from my tests, but it used to do the same in Chrome) that focused elements isn't visible, hidden by our sticky header. Applying `scroll-padding-top` to the `:root` solves this without any side-effect—but it requires to drop `scroll-margin-top` for anchors to prevent doubling the offset. FWIW based on my test, Edgium and Chromium don't really care since they seem to have a new heuristic for such cases, making the focused element scroll to the center of the view.
2021-02-09Add function type for `popperConfig` option (#32882)Rohit Sharma4-6/+52
* Add function type for `popperConfig` option * Update .bundlewatch.config.json * copy edits Co-authored-by: XhmikosR <[email protected]> Co-authored-by: Mark Otto <[email protected]>
2021-02-09Mention dropdown static change in Migration guideMark Otto1-0/+1
Co-authored-by: Rohit Sharma <[email protected]>
2021-02-09Remove .dropdown-menu[style] reset and adjust .dropdown-menu-* modifiersMark Otto1-4/+89
- Removes the &[style] selector that was used for resetting Popper styles - Separate Popper-based alignment from static alignment with `data-bs-popover` attribute that separates the --bs-position and custom right/left properties Co-Authored-By: Rohit Sharma <[email protected]>
2021-02-09Docs on enforcing HTTPS and avoiding mixed content (#33017)Philip Kiely1-2/+4
Co-authored-by: XhmikosR <[email protected]>
2021-02-09Dynamic tabs: use buttons rather than links (#32630)Patrick H. Lauke1-37/+37
* Dynamic tabs: use buttons rather than links - change docs - add mention that tabs should be <button> elements - tweak styles to neutralise border and background * Update js unit and visual test accordingly - replace links with buttons - make one specific test that uses links instead of buttons, as we still want to support it despite it being non-semantically appropriate - Leaving a couple of tests for now. The test for removed tabs should be redone so that tabs are removed programmatically (as the approach of having that close button inside the link is invalid and broken markup). The test for dropdowns should be removed together we actually ripping out the handling for dropdowns in the tab.js code (arguably a breaking change, though we discouraged this for a few versions and effectively "deprecated" it) * Add isolation:isolate to prevent focus being overlapped https://github.com/twbs/bootstrap/pull/32630#issuecomment-756015766
2021-02-08Add a note to change the case type of option name (#32995)Rohit Sharma2-2/+2
2021-02-04Fix boundary config description for dropdown and popover (#32979)Kyle Tsang2-5/+3
2021-02-03Dropdown — Emit events on the `.dropdown-toggle` button (#32625)Rohit Sharma2-2/+2
* Emit events on the dropdown button Emit the events on `.dropdown-toggle` button and then bubble up * Add migration note for events * Update the docs for events * Add unit test to check the event bubbling Co-authored-by: XhmikosR <[email protected]>
2021-02-03Fix default value for `$enable-deprecation-messages` (#32940)Stanisław Gregor1-1/+1
* Update the default value for $enable-deprecation-messages As seen in the https://github.com/twbs/bootstrap/blob/main/scss/_variables.scss, the $enable-deprecation-messages variable is set to `true` by default. * Update site/content/docs/5.0/customize/options.md Co-authored-by: Gaël Poupard <[email protected]> Co-authored-by: XhmikosR <[email protected]> Co-authored-by: Gaël Poupard <[email protected]>
2021-02-03Remove the initial margin from dropdown/popover in favor of Popper (#32524)Rohit Sharma2-2/+2
* Remove the margin from dropdown in favor of Popper - Set the default margin to 0 for dropdowns (To remove the Popper's warning) - Set the required offset in dropdown's defaults * Remove the margin from the popover component Co-authored-by: XhmikosR <[email protected]>
2021-02-03Tweak scss-docs shortcodeXhmikosR1-1/+1
Should work now with indented start/end capture statements
2021-02-03Update docs for color and bg utilitiesMark Otto9-39/+127
- Split colors from background utilities with new docs page - Add Sass docs for both pages
2021-01-28Make carousel indicators actual buttonsPatrick H. Lauke4-30/+30
2021-01-28Update docs for `offset` optionRohit Sharma4-3/+24
2021-01-28Restore offset option for dropdown componentjoke2k1-0/+10
2021-01-28Update checks and radios in input groups (#32912)Mark Otto1-3/+3
- Adds .mt-0 to the examples - Zero-ing out universally for all of them like in #32896 would cause issues for those who include the input with visible label text, where the text and input would be misaligned
2021-01-28migration: mention `.form-text` changes (#32911)Tobias Bengfort1-0/+1
see #30598 and #30565
2021-01-27Carousel: use buttons, not links, for prev/next controls (#32627)Patrick H. Lauke3-38/+38
* Carousel: use buttons, not links, for prev/next - expand the styles to neutralise border/background - change docs page - add extra unit test to check that links or buttons work as controls - modify visual test to use buttons as well - use buttons instead of links for prev/next - remove `role="button"` from links that are actually links * Clarify that controls can be button or link * Update site/content/docs/5.0/components/carousel.md Co-authored-by: Mark Otto <[email protected]> * Explicitly set padding to 0 to prevent dipping/moving on active in Firefox Co-authored-by: XhmikosR <[email protected]>
2021-01-26Bump eslint-plugin-unicorn from 26.0.1 to 27.0.0 (#32902)dependabot[bot]1-0/+1
* Bump eslint-plugin-unicorn from 26.0.1 to 27.0.0 Bumps [eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn) from 26.0.1 to 27.0.0. - [Release notes](https://github.com/sindresorhus/eslint-plugin-unicorn/releases) - [Commits](https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v26.0.1...v27.0.0) Signed-off-by: dependabot[bot] <[email protected]> * Update ESLint ignores Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: XhmikosR <[email protected]>
2021-01-25Add a link to v4.x from the v5 homepage (#32745)Mark Otto1-1/+3
* Add a link to v4.x from the v5 homepage * Update masthead.html * Update masthead.html * Change label Co-authored-by: XhmikosR <[email protected]>
2021-01-25Replace .bg-white with .bg-body in docsVino Rodrigues7-13/+14
Response to issue #32810 Use of the .bg-white class to define visual aspects of the examples would be unintuitive for theme builders to test themes on. This replaces instances of .bg-white with .bg-body in the examples. - Edited examples to replace use .bg-white class with .bg-body class - product - offcanvas - pricing - cheatsheet - cheatsheet-rtl - Edited utilities colors.md & shadows.md to include .bg-body class
2021-01-20docs: Fix `navbar-nav-scroll` description (#32846)Kyle Tsang1-1/+1
2021-01-19Docs: add v4.6.0 (#32842)XhmikosR2-2/+3
2021-01-19Add `.navbar-nav-scroll` for vertical scrolling of navbar content (#32037)Mark Otto1-0/+48
Co-authored-by: XhmikosR <[email protected]>