Bootstrap 5 Components icon
Module Id
bootstrap5-components
Group Id
org.jahiacommunity.modules
Updated
Requires Jahia
8.2.0.0
Author
pvollenweider
Category
Templating and extensions
Status
COMMUNITY info

Bootstrap 5 Components group_work

templates bootstrap layout

This project is a Bootstrap 5 implementation of http://getbootstrap.com for the Digital Experience Platform.

This module contains all the modules, definitions, views, and logic.

Get the full documentation on the GitHub page https://github.com/Jahia/bootstrap5

List of Components and Documentation

The Bootstrap 5 components module provides a comprehensive list of components that allows you to utilize Bootstrap 5 effortlessly. The logic and syntax are handled automatically.

  • Accordions This component enables you to create vertically collapsing accordions using the Bootstrap Collapse JavaScript plugin. 
  • Breadcrumb Indicate the current page's location within a navigational hierarchy, automatically adding separators via CSS. 
  • Button This versatile component allows you to create buttons with various styles, sizes, and functionalities. 
  • Card Bootstrap's cards provide flexible and extensible content containers with multiple variants and options. They can include headers, footers, different content types, contextual background colors, and more.
  • Carousel A slideshow component for cycling through elements, such as images or slides of text, like a carousel
  • Figure and Images Whenever you need to display content, such as an image with an optional caption, consider using the figure component
  • Layout and Grid Bootstrap's grid system uses containers, rows, and columns to create flexible and responsive layouts. It is built with flexbox and adapts to different screen sizes. 
  • Navbar The navbar component provides simple navigation for your site, including sign-in options, language switching, and more. 
  • Pagination Indicate the existence of a series of related content across multiple pages. 
  • Tabs and Pills Tabs and pills are navigation components that enhance website clarity and improve user experience.
  • Text This component provides Bootstrap styles and CK templates. 
  • Version Displays an alert during edit mode with the version of Bootstrap being used.

Dependencies & Dependants

Changelog 2.4.5

Added

  • Navbar — third-level pages now render as Bootstrap 5 dropend submenus (.dropend + .submenu.dropdown-menu), supported in both the Groovy multilevel renderer and the legacy JSP view

Fixed

  • Accordion — aria-expanded was hardcoded to "true"; now reflects actual open/closed state
  • Breadcrumb — aria-label moved from <ol> to the wrapping <nav> element (WCAG 4.1.2); non-navigable items replaced <a href="#"> with <span> to remove dead links
  • Button — removed invalid role="button" from <a> elements; modal trigger gains aria-haspopup="dialog" and aria-modal="true"; collapse trigger exposes dynamic aria-expanded; offcanvas uses conditional aria-labelledby/aria-label; disabled state uses <button disabled> instead of <a href="#">
  • Carousel — indicators converted from <ol>/<li> to <div>/<button> with aria-label="Slide N" and aria-current="true"; prev/next controls converted to <button> with data-bs-target; outer div gains aria-roledescription="carousel" and aria-label; pause/play toggle added
  • CarouselItem — added alt text, aria-roledescription="slide", and aria-label per slide; caption visible to AT on all viewports
  • Navbar login — duplicate input id attributes eliminated; visually-hidden <label> elements added; login trigger converted from <a role="button"> to <button>; all decorative SVGs gain aria-hidden="true" focusable="false"
  • Navbar multilevel (Groovy) — aria-current="page" on active links replaces the deprecated visually-hidden span; dropend toggle includes hrefdata-bs-togglearia-expanded, and id; submenu <ul> gains aria-labelledby
  • Navbar multilevel (JSP) — aria-current="page" on active links; removed aria-haspopup="true" from dropdown toggles; removed invalid aria-labelledby from <div class="dropdown-menu">
  • Navbar wrapper — aria-hidden="true" on toggler icon span; conditional alt on brand image
  • Pagination — wrapped <ul class="pagination"> in <nav aria-label="Pagination">; numbered links gain aria-label="Page N"; active item gains aria-current="page"
  • Privacy settings modal — converted BS4 tab markup to BS5 (data-bs-toggle<button> tabs); aria-modal="true"aria-labelledby, and tabindex="-1" on modal; tab panels gain aria-labelledby and tabindex="0"; duplicate id (#privacyTabs_…) corrected
  • Tabs — aria-selected leading-space typo fixed; tabindex added to tab buttons and panels; aria-label on tablist; aria-labelledby on tab panels

Full changelog: https://github.com/Jahia/bootstrap5/blob/2_X/CHANGELOG.md

FAQ

If you find any issue of if you want to propose some improvement, please use the dedicated tools from the developer page https://github.com/Jahia/bootstrap5

How To Install

The easiest way to install Bootstrap 5 on your platform using the package.
But you can also install only this module directly. Please read the dedicated tutorial on https://academy.jahia.com/training-kb/tutorials/administrators/installing-a-module and select the Bootstrap 5 Component module from the store.

 

License

MIT License

Copyright 2020 Philippe Vollenweider

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.