Install
Works with Drupal: ^11.3 || ^12Using Composer to manage Drupal site dependencies
Alternative installation files
Release notes
Covers everything since 2.0.1, the last published release.
Fixed
- Hovering a section now recolours all of its text. The text hover colour was set on the section, but titles, paragraphs and fields painted their own colour, so hovering a hero box changed the box and left every line as it was. Text colour is now set once on the section and everything inside inherits it: core .field, and the hero, node reference, modal, image overlay, card and image grid bundles.
- Links inside a modal's text keep their link colour. The modal painted links in the text colour, so they stood out by underline alone.
- Captions and titles inside a clickable card, image or icon stay in the text colour. A link that wraps a whole block (.pb-ui-link) now inherits the section's colour instead of the theme's link colour; the icon bundle's links carry that class too.
Added
- control-btn class on 25 of PB's control buttons (carousel, 3D carousel and slideshow controls, the 3D flip box toggle, image grid lightbox controls, alert countdown pause and close, column toggles, modal close), so a theme that styles every button can exclude .control-btn and leave PB's controls alone. Not added where the button's look is the design (accordion, tabs, modal open button). No existing class, style or behaviour changes.
Changed
- 3D carousel: the control-button styles are defined in two blocks with the same selector. No visible change: 1421 computed style values on the prev, next and pause buttons at rest, hover and keyboard focus read back
identical. One edge case: a theme or module thapb-u-hide-0 to a 3D carousel control button will
now hide it. Nothing in PB does.
- Stylesheet housekeeping: CI now lints all 74 ing 6), and all 74 pass core's stylelint config.
Property order, layout, rgb() notation and quot duplicate selectors in the hero and flip box
bundles merged. No visible change.
Tests
- PbCssColourInheritanceContractTest fails if a-* text colour onto children instead of thesection; PbControlButtonClassContractTest checkutton carries control-btn;PbCssDuplicateSelectorContractTest now allows n