v8 removes support for the internal brand. Consider using o-header-services instead, or contact the Origami team to discuss bring back support for the internal brand.
The dependencies for this component have all been updated to the latest major versions. If you have any conflicts while installing this version, you'll need to first update its dependencies. See the Bower config for these.
aria-selected
is no longer used to style current links. If your project is still using aria-selected
in header markup replace it with aria-current="page"
.
Origami components now require a $system-code
Sass variable is set by the project, which must be a valid Bizops system code.
The following Sass variables have been removed:
$o-header-image-service-version
$o-header-image-base-url
The first oHeader
argument is now an options map $opts
, rather than $features
, to align with other Origami components.
-@include oHeader($features: ('drawer', 'sticky'));
+@include oHeader($opts: ('drawer', 'sticky'));
The following Sass mixins have been removed and should be replaced with a single call to oHeader
and the appropriate $opts
argument.
oHeaderBase
: included by default in base stylesoHeaderTop
: included by default in base stylesoHeaderAnon
: 'anon' featureoHeaderDrawer
: 'drawer' featureoHeaderMegaMenu
: 'megamenu' featureoHeaderNav
: 'nav' featureoHeaderSearch
: 'search' featureoHeaderSimple
: 'simple' featureoHeaderSticky
: 'sticky' featureoHeaderSubnav
: 'subnav' featureoHeaderSubbrand
: 'subbrand' featureoHeaderTransparent
: 'transparent' feature
E.g. to output the header with select features:
-@include oHeaderBase;
-@include oHeaderTop;
-@include _oHeaderDrawer;
-@include _oHeaderSticky;
+@include oHeader($opts: ('drawer', 'sticky');
Or to output only base styles:
-@include oHeaderBase;
-@include oHeaderTop;
+@include oHeader($opts: ());
Or to output only extra features without the base styles required by all features:
-@include _oHeaderDrawer;
-@include _oHeaderSticky;
+@include oHeader($opts: ('drawer', 'sticky'), $include-base-styles: false);
There is no direct replacement for the following mixins. Please contact the Origami team if you have a usecase for these:
oHeaderLink
oHeaderFancyLink
oHeaderItemSeparator
oHeaderLogoSize
oHeaderBrandImage
Also replace oHeaderVisuallyHidden
with the o-normalise mixin oNormaliseVisuallyHidden.
Finally all deprecated colour usecases have been removed. Please contact the Origami team if your project requires these.
V7 introduces new major versions of o-colors
, o-typography
, o-buttons
and o-visual-effects
. Updating to this new version will mean updating any other components that you have which are using o-colors
, o-typography
, o-buttons
, or o-visual-effects
. There are no other breaking changes in this release.
This is a complete change in the markup and usage of the module, so we advise to look at the markup in the demos and go over the readme. If any issues come up, please let us know.