Install

Works with Drupal: ^8 || ^9

Using Composer to manage Drupal site dependencies

Alternative installation files

Download tar.gz 668.36 KB
MD5: dc2cc2663e716b3a3081b494c5350575
SHA-1: dab4165092211865a44b358719ce44340b1ee78f
SHA-256: e2843f25584d004be39525a23cb9b875c575927ac4b4e1ae4cd15da5b7644f35
Download zip 739.71 KB
MD5: 2eda8faddc9fb2a031fed1905a2b585d
SHA-1: d5a65a6b6790872130bdaec497f64387a3662d77
SHA-256: 60ed587bf44057122d09ac295f7369251da15644cf4c5c21e10c422a72632739

Release notes

This branch has all the major breaking changes we anticipate making before creating a fully stable release. The upgrade steps are significant, so plan some time to test your theme and make the manual changes.

Thank you to everyone who contributed work, tested, and commented on issues!

Changes since 8.x-6.0-alpha6 release:

Upgrade notes since alpha6 release:

Major changes happened to the grid system as well as to the build system. Please follow these steps and test thoroughly before updating a production theme.

A major change to the grid system from the legacy float grid to the XY Grid will cause issues for any subtheme that is not already using the XY Grid. To upgrade sub-themes, you will need to update the page.html.twig template file, your THEME.scss file, and any custom templates and preprocess functions that add float-based grid classes (row column.)

There have been updates to dependencies and the entire build process. Some of these changes require manual steps to bring existing sub-themes up to date. Since there have been changes to the package.json and the gulp version, if you want these changes in your existing sub-theme, you will need to copy the changes to the necessary files. The new changes also build the Foundation JS within your theme by default. This gives you more control over the versions and will make future updates less likely to break your theme without your knowledge.

Some old theme settings have been removed: respond.js (wasn't being supported), hard coded account info settings.

Updating to the new build process:

Updating to Gulp 4:

  • Copy over the .babelrc and config.yml from the STARTER template to the root of your sub theme. Add your site uri to the config.yml in your subtheme.
    • Inside the config.yml file, add in your local development site URI to the BROSWERSYNC constant. Check that the directory names for js and css are correct -- they should be if you haven't changed the file structure from initial setup.
  • Copy the /js/foundation_init.js from STARTER to your js folder in your subtheme.
  • Copy the package.json from the STARTER theme to your sub-theme. Make sure you keep the correct project name at the top of the file.
  • Delete the old gulpfile.js from your theme. Copy the gulpfile.babel.js from the STARTER theme to your sub-theme.
  • If you had any additional custom dependencies in your package.json, or custom build processes in your gulpfile, you will need to add those back in.
  • Make sure the name and version in your package.json are correct for your subtheme.
  • Important: Delete your node_modules directory.
  • NOTE: The latest Foundation works with Node 12 and 14, it is note yet compatible with Node 16. You can use nvm if you need more control of your node version to build the theme in your environment. Run npm install or yarn install
  • Run gulp to re-build your css and test that the new gulp build process is working.
  • Recommended: To use the JS built inside your theme (instead of the base theme JS), add in the js files to your theme's libraries.yml file. If you haven't made other customizations to that file, you can simply copy the updated file from STARTER. Just be sure to change any uses of the word STARTER to your theme name.

Updating subtheme templates:

The amount the template updates impact you will depend on how much you've overwritten templates in your sub theme. If you don't want to adopt the xy-grid, or don't want to update templates, copy any templates you don't already have in your subtheme from the base theme into your subtheme. For example, if you don't have a custom field.html.twig template in your theme, and don't want to fix css with the upgrade, copy that template into your subtheme before updating.

If you would like to bring your sub-theme templates up to date with the base theme, you will want to:

  • Refer to #3178372: Drupal 8.7.0 introduces an unique ID for pagination for notes on how to update your pager.html.twig template.
  • Refer to #3117547: Using the XY-grid by default for notes on updating your page.html.twig template.
  • Review any custom twig templates for float-grid classes (row, columns) and change those to xy-grid classes (grid-x, cell).
  • If you depended on the hard coded account info and slogan from page.html.twig, you will need to add it back into your sub-theme file.
  • Instead of field-name-[name], field-type-[type], the classes follow core class naming conventions so be field--name-[name], field--type-[type] etc. Do a find and replace for classes that follow that pattern in your css.
  • Sidebars now live inside the <main> html section. Make sure your css or js isn't depending on them being siblings.
  • Check out #3273854: Template updates to keep up with Core for a detailed list of other template changes.

Other theme changes:

  • Make sure to update your SUBTHEME.scss file to @include foundation-xy-grid-classes. As always, refer to the STARTER theme for reference.
  • Make sure any preprocess template functions that add classes to templates aren't adding float grid classes.
  • Copy/paste the latest _drupal.scss file from STARTER into your theme (replacing the existing _drupal.scss file in the base directory of your subtheme.)
  • Update your _settings.scss file with the latest variables. There is not a cut-and-paste way to do this because your settings will be unique to your theme. Use this diff as a reference for lines that have changed, and #3109917: Upgrade to Foundation 6.7.4 discussion for more details on ways that the settings file has changed.
  • If you use the Status Messages in Reveal feature, double check that it still works, or that any workaround that you may have implemented doesn't conflict with the feature fix in this release.
Created by: sim_1
Created on: 12 Jul 2022 at 21:17 UTC
Last updated: 12 Jul 2022 at 21:17 UTC
Bug fixes
New features
Unsupported

Other releases