Skip to content

Version 6.0.4 — Tarvis

Compare
Choose a tag to compare
@gakimball gakimball released this 25 Nov 02:07
· 6712 commits to develop since this release

Breaking Changes

Yes, there are a few. We're going to abuse semver a little bit at the beginning here while we massage the Sass API.

  • Renamed Sass function hasvalue() to has-value(). The old function name will be removed in Foundation 6.1.
  • Removed Sass function v-align-center() in favor of vertical-center()—see below. v-align-center() will be removed in Foundation 6.1.

Sass Settings Changes

The following changes were made to _settings.scss. All new projects will get these changes automatically.

  • Removed $text-direction, which was a duplicate of $global-text-direction.
  • Removed $global-namespace, which is non-functioning.
  • Added $offcanvas-fixed-reveal: true.
  • Added $dropdownmenu-border: 1px solid $medium-gray.

New Features

  • Okay, it's not new new, but support for data-options as a way to pass parameters to JavaScript plugins is back.
  • If an off-canvas menu is revealed on a larger screen, you have the choice to make the menu fixed position or not. This is handled by a new Sass variable, $offcanvas-fixed-reveal. The feature is enabled by default.
  • We added a few new mixins for vertically and horizontally centering items in CSS. They use the position: absolute; plus transform: translate(-50%, -50%); trick we all know and love.
    • vertical-center() will vertically align an element.
    • horizontal-center() will horizontally align an element.
    • absolute-center() will vertically and horizontally align an element.
    • These functions replace the old vertical-center() and v-align-center() mixins, which did something similar, but were somewhat confusingly named.

Thanks to @hugogiraudel for sharing his positioning mixins with us!

Bug Fixes

  • Added !default flags to components missing them.
  • Dropdown menus were refactored to better handle click and hover states, and function much faster overall.
  • Fixed pagination arrows not appearing on next/previous links.
  • Fixed drilldown menus not working with RTL pages.
  • Fixed z-index issues with revealed off-canvas menus, which prevented anything inside the menu from being clicked on.

We also pulled in many, many pull requests that refine our documentation. Thanks again to the community for fixing our typos for us :)

Tarvis is a moon of Saturn, part of the Gallic group of natural satellites. The moon is named after Tarvos Trigaranus, a figure in Celtic mythology depicted as a bull with three cranes sitting on its back.