aboutsummaryrefslogtreecommitdiff
path: root/js/tests/visual
AgeCommit message (Collapse)AuthorFilesLines
2024-06-12Floating labels: Fix `max-width` and `background-color` (#39720)Louis-Maxime Piton1-0/+337
* Fix `max-width` * Fix label background color * Add new visual test: floating label * Fix `npm run docs` --------- Co-authored-by: Julien Déramond <[email protected]>
2023-10-13Tests: update navbar in visual modal test (#39294)Julien Déramond1-15/+19
2023-07-05Docs: add missing `aria-disabled='true'` to disabled anchorsJulien Déramond1-2/+2
2023-05-01Fix scrollspy and accented anchor links (#38502)Alejandro Mendoza1-0/+9
2023-03-29Tweak and re-organize ESLint config (#38369)XhmikosR1-19/+0
* Tweak and re-organize ESLint config * merge individual configs to the root config * enable more eslint-plugin-import rules * lint markdown files * Lint
2023-03-14Remove empty script tag (#38233)Neeraj Kumar Das1-1/+0
2023-01-17Fix Android Chrome input date dimensions (#36143)Tanguy Krotoff1-0/+79
* Bind Hugo to 0.0.0.0, helps debug on mobile when on the same network * Use http-server for visual tests * Add input visual tests * Fix input date dimensions on Android Chrome * Increase bootstrap.css max size * Revert "Bind Hugo to 0.0.0.0" & "Use http-server for visual tests" * Switch to pixels: this is an empirical minimum safe value * Update .bundlewatch.config.json Co-authored-by: Mark Otto <[email protected]>
2023-01-16Deprecate the Sass var and remove any occurence of the `.text-muted` (#37890)Louis-Maxime Piton2-2/+2
2022-11-12ESLint: enable prefer-template rule (#37484)XhmikosR2-2/+2
2022-10-12Docs: standardize usage of `<kbd>`Julien Déramond1-2/+2
2022-10-02Use `<h1>` for all `modal-title` examples/uses (#37210)Patrick H. Lauke1-4/+4
* Use `fs-` font sizing classes where needed * Also add info callout about heading hierarchy in modals
2022-09-27Add eslint-plugin-html to lint JS in HTML files (#37186)Julien Déramond5-13/+40
2022-09-22Use es6 on visual tests (#36915)GeoSot4-51/+30
2022-09-14fix: add trick to support tooltip selector usage on dynamic created tooltips ↵GeoSot1-14/+40
that utilize `title` attribute (#36914)
2022-06-03Remove confusing unnecessary id/aria-labelledby for dropdown menus (#36487)Patrick H. Lauke2-12/+12
see https://github.com/twbs/bootstrap/discussions/35755 Note that even the APG guide for disclosure widgets doesn't use this optional "nice-to-have" extra bit https://www.w3.org/WAI/ARIA/apg/patterns/disclosure/ (though they do use `aria-controls`, which in most current browser/AT combos is borked though)
2022-05-20Docs: quick fixes for HTML (#36395)Louis-Maxime Piton1-1/+1
* Using the new helper in the doc * Remove input from `Tab` access * Change scrollspy code examples * Reordering tables for JS * Fix for parcel file * Center align all the code example texts in layout * Alphabetical reorder the helpers
2022-04-30Doc: remove `role="group"` from some split drop* buttonsJulien Déramond1-3/+3
2022-02-09Remove remaining `.navbar-light` classes (#35814)Julien Déramond1-1/+1
* Fix typo in CSS variables documentation * Drop remaining .navbar-light classes
2022-01-30Fix visual tests (#35585)XhmikosR11-86/+23
* Fix visual tests They broke in #34509 * load bundle.js in visual tests Co-authored-by: GeoSot <[email protected]>
2021-10-05Use `for...of` in visual tests tooGeoSot4-35/+34
2021-10-05Enable `unicorn/prefer-prototype-methods` ruleXhmikosR3-4/+4
2021-08-23visual tests: minor fixes (#34802)XhmikosR4-7/+5
2021-02-22visual tests: add missing base-component dist file (#33167)XhmikosR11-0/+11
Regression of #32313
2021-02-09Dynamic tabs: use buttons rather than links (#32630)Patrick H. Lauke1-35/+32
* 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-01-28Make carousel indicators actual buttonsPatrick H. Lauke1-5/+5
2021-01-27Carousel: use buttons, not links, for prev/next controls (#32627)Patrick H. Lauke1-4/+4
* 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-08Move "active" class from `.nav-item` to `.nav-link` (#32730)Théophile Helleboid - chtitux2-4/+4
2020-12-06Update to popper.js v2.xJohann-S3-14/+5
2020-12-04feat(RTL): implement RTLGaël Poupard5-28/+27
Using RTLCSS directives, renaming things to use logical names and following best practices.
2020-11-21Be consistent with Popper's name. (#32224)XhmikosR1-1/+1
The npm package is named "popper.js" but the project is named "Popper", so use the latter consistently.
2020-11-14Fix `.close` instances (#32152)XhmikosR3-25/+9
2020-11-14Add `bs` in data attributesRohit Sharma11-110/+110
- Add `bs` in data APIs everywhere - Update unit tests
2020-11-09modal.html: use `textContent` (#32101)XhmikosR1-1/+1
We are not handling any HTML
2020-11-05Remove the now unneeded polyfills.XhmikosR11-11/+0
2020-10-30Remove obsolete prefixes (#32012)XhmikosR1-2/+0
2020-10-22Move `href` attribute first (#31835)XhmikosR11-11/+11
2020-10-14Remove redundant visually hidden "(current)" from pagination controls (#31892)Patrick H. Lauke2-2/+2
* Replace visually hidden span with aria-current in tests * Remove redundant visually hidden "(current)" when `aria-current` already used Closes #31891
2020-07-03Rename `sr-only`/`sr-only-focusable` (#31139)Patrick H. Lauke3-9/+9
* Rename `sr-only`/`sr-only-focusable` To be more representative of the fact that these are not necessarily "screen reader" specific, but actually apply to assistive technologies in general (and also things like Alexa/Siri/etc). Goes hand-in-hand with #31133 Co-authored-by: XhmikosR <[email protected]>
2020-06-04Add role="dialog" in modals via JavaScript (#30936)Rohit Sharma1-4/+4
2020-05-11Removed role="document" from the modal dialog (#30755)Rohit Sharma1-3/+3
2020-05-06tests: streamline HTML end tags (#30648)XhmikosR2-2/+2
2020-03-31Use unordered lists in dropdown-menusMartijn Cuppens3-44/+44
2020-03-28v5 tabs - accessibility issue when using ul/li semanticLaussel Loïc3-39/+35
Add aria-role presentation on li element when ul element has role tablist and remove dropdown from visual tests as they've been removed from doc
2019-07-29remove underscore for static methodsJohann-S1-2/+2
2019-07-24add polyfill.js in visual tests (#29116)Johann-S11-0/+11
2019-05-08Rename `eventHandler` and `selectorEngine` files.XhmikosR11-21/+21
2019-03-18fix remove files in our visual testsJohann-S11-36/+13
2019-02-27Remove the now unneeded `shrink-to-fit` directive. (#28314)XhmikosR11-11/+11
2019-02-26move util in a util folder with the sanitizerJohann-S1-3/+3
2019-02-24Remove DOMContentLoaded. (#28337)XhmikosR4-111/+103
There's no reason for us to wait here.