Version 2.0
This release is being made with a concurrent release to the accompanying Pitchfork theme. Please ensure that the 2.0 version of this plugin is being used with at least the 2.0 version of the theme to ensure that the markup produced by the blocks compatible with the latest recommendations of the theme.
Bootstrap 5 and the GA4 data layer
- FIX: All included blocks are now formatted to use Bootstrap 5 and the latest markup recommended by the ASU Unity project.
- ADD: The following elements within Pitchfork Blocks will automatically have their user interface interactions added to ASU's GA4 data layer object.
| Element | Data tracked |
|---|---|
acf/alert |
Tracks any close/dismissal event. |
acf/banner |
Tracks any close/dismissal event. |
acf/card-foldable |
Within an accordion, tracks all individual open and close events. |
acf/sidebar |
Tracks all open and close events for nested menu items. |
Background Section block (acf/background-section)
- CHANGE: All block types are now supported as direct children of the
acf/background-sectionblock. By default, the block will now include acore/groupblock as the first inner block, but this block can be freely removed as needed. - ADD: Add six new Unity patterns to the
acf/background-sectionblock. - CHANGE: The
acf/background-sectionblock now allows for all ASU gray colors as preset solid color backgrounds. (Previous options were limited to ASU Gray 1, 2 and 7.) Background color options are now available via the native WordPress color controls in the block options panel. - ADD: The block now allows for a background color option as an overlay for repeatable/tileable patterns. This makes it easier to use patterns from collections like Subtle Patterns and Transparent Textures without writing further CSS rules.
Additional fixes
- FIX: The
acf/card-foldableblock now allows for an end user to alter the unique ID associated with the card. Addresses a problem when duplicating an existing foldable card block to allow for more accordions in the set. - CHANGE: Change the
acf/alertandacf/bannerblocks to use the same underlying JS mehanism for dismissing the messages. Both now use the appropriate Bootstrap 5 dismissal JS function. - ADD: The
acf/grid-linksblock now uses the ACF Font Awesome icon picker in the interface. - ADD: The
acf/heroandacf/hero-videoblocks allow for a bottom margin to be set in the block styles editor. The default state of that margin is 4rem ($uds-size-8) for all new hero blocks. - CHANGE: Blocks immediately following a hero block will no longer have a top margin. The adjacent sibling style rule that produced this effect has been removed.
- FIX: The supporting CSS classes for
acf/heroandacf/hero-videowhich controlled the positioning of the button row and the content group are no longer required to be present in the advanced/additional CSS classes section of the block settings. Those classes are now added automatically anytime there is acore/buttonsorcore/groupblock within theacf/heroblock.
Additional technical release notes
- CHANGE: Update references to ASU Unity Project to current packages located at https://github.com/orgs/ASU/packages.
- CHANGE: Adopt new build process for continued development of the plugin. See Gulp WP for additional details. Build and compilation process still begins with
npm start. - FIX: Change method used to provide additional CSS rules within the block editor. Aligns with current best practice.
- ADD: Registered new ACF save point for any ACF-JSON settings applied by this plugin.