v14.0.0
Before you upgrade, please take note of any breaking changes and deprecation notices which may affect your site. View the Upgrade Guide to see examples of how to address breaking changes.
This update contains the release of our new Visual Identity 🎉
VID updates 🎉
- new
logo#573 - new
Frauncesweb font #562 - updated default
<a>link #567 - updated
bodyandheadings#571 - updated Style Guide:
- Backgrounds - #559 #709 #737 #746
- Blockquote - #619 #648 #658 #709 #737
- Buttons - #567 #608 #643 #657 #659 #737 #778
- Citation - #612 #737
- Code - #648 #655 #659 #737
- Colour Palette - #556 #659 #675 #690
- Embedded Media - #637 #737
- Figure - #623
- Forms - #565 #601 #608 #609 #618 #633 #635 #648 #659 #709 #737 #746
- Icons - #665
- Lists - #570
- Notices - #571 #578 #587 #737
- Tables - #571 #581 #607 #648 #659 #666 #737
- Titles - #562 #565 #571 #648 #659 #737
- Typography - #562 #567 #583 #618 #620 #625 #648 #684 #691 #709 #737 #754
- updated Components:
- Accordion - #580 #648 #659 #709 #737 #775
- Article - #571 #606 #641 #659 #668 #709 #737
- Block Listing - #567 #571 #579 #637 #648 #659 #672 #675 #709 #737
- Card - #646 #648 #659 #672 #737
- Checklist - #635 #648 #709 #737
- Footer - #639 #640 #659 #709 #737
- Enquiry - #622 #648 #659 #675 #699 #737 #746
- Events - #567 #571 #578 #624 #644 #648 #659 #700 #709 #737
- Filtered Listings - #571 #618 #621 #648 #709 #737 #746 #757 #773
- Gallery - #617 #659 #737
- Headers - #562 #571 #606 #608 #621 #634 #637 #648 #659 #668 #675 #701 #709 #737 #782 #786
- In-page Navigation - #571 #610 #637 #648 #659 #675 #709 #737
- Listings - #567 #575 #592 #593 #597 #637 #648 #659 #675 #694 #696 #737
- Loading Animation - #645 #659 #737
- Logo Listing - #637 #648 #659 #709
- Modal - #567 #631 #648 #659 #737
- Navigation Listing - #648 #672 #737
- News - #571 #588 #593 #648 #659 #709 #737
- Page Header - #565 #573 #648 #659 #737
- Pathfinder - #571 #597 #637 #648 #659 #702 #709 #737 #778
- People - #567 #571 #581 #606 #637 #648 #659 #675 #703 #709 #737 #778
- Preview Banner - #669 #737
- Quick Links - #567 #639 #640 #659 #672 #737
- Search - #571 #608 #648 #659 #704 #709 #737
- Tabs - #571 #593 #637 #648 #659 #672 #737
- Tags - #644 #672 #737 #778
- Text Boxes - #620 #648 #659 #675 #737
- Timeline - #571 #611 #637 #648 #675 #709 #737 #778
- other Component updates:
- other Style Guide updates:
- updated
printcss #637 #675 #737 - updated
screenreadercss #643 #746
New features ✨
- new
logocomponent #576 #648 #737- add the modifier class
logo__image--mdorlogo__image--lgto the<img>to use amediumorlargesized logo
- add the modifier class
<div class="logo">
<a href="https://www.unimelb.edu.au" class="logo__link">
<img
alt="The University of Melbourne homepage"
src="/link/to/logo.svg"
class="logo__image"
/>
</a>
</div>
- new
primaryBackground colour #709
<div class="bg-primary">...</div>
Tertiary:
<button class="button button--tertiary">...</button>
<a class="button button--tertiary" href="#">...</a>
Inverted:
<button class="button button--inverted">...</button>
<a class="button button--inverted" href="#">...</a>
- new typography
mixinslevels1to7. They have theirfont-family,font-size,font-weight,line-height, andletter-spacingpre-defined to ensureconsistenttypography is used throughout all components #562 #660
.example {
@mixin typography-level-1;
}
- new
typography-uppercasemixin to settext-transform:uppercaseand correctletter-spacing#583
.example {
@mixin typography-uppercase;
}
chevron-left,chevron-up, andchevron-downhave been added to Icons - #676 #768iconscan now beimporedin thecsswith~icons#676
Before:
mask: url('../icon-set/chevron-right.svg');
After:
mask: url('~icons/chevron-right.svg');
Frauncesweb font is loadedlocallyusing ourcdn#754- replaced
normalize.csswith newermodern-normalizepackage #562 #788 - replaced
rgb-hexwithcolorpackage #556 - implemented
css-has-pseudo/browserpolyfill to support:has()onfirefox#765
Bug fixes 🐛
- some Timeline fixes #763
- dots on
altbackground - mobile layout where the line sometimes didn't extend to the next item
- dots on
- removed
width: 100%from Cards so it can work with thegridsystem #772 - removed
z-indexfrom.page-inneras it was breaking thesearchoverlay #601 - updated
.floating(when used with the Mega Menu) to behiddenusing@mixin screenreaders-onlyinstead of anegativemargin #656 logo,menu, andsearchicons in the Page Header now align withmajorityof content on pages #756Page Footernow aligns with themajorityof content on pages #756- removed
[role='main']fromassets/style-guide/layout/grid/_grid.cssso thegridcomponent can be used in thePage Footer#576 .screenreaders-onlyhelper class was scoped to.uomcontent [role='main']which prevented it from being used in thePage Footer. This has been changed to allow it to be used anywhere #576- updated
screenreaders-onlymixin to be completelyhiddenfrom thescreenas it was1pxhigh before, which created a small white gap between thebreadcrumbsandtabs#656 - fixed some
autoprefixercss warnings #708 - removed
legendfrom thefilterson the Layouts page as it was showing the same text as thelabel#746
Deprecation Notice⚠️
.altBackground class has been deprecated and will be removed in a later version. You can use.bg-altinstead #709
Before:
<div class="alt">...</div>
After:
<div class="bg-alt">...</div>
.wide,.short, and.reversePage Header variations have been removed #565.button.warning,.button.cta,.button.brand,.button-small.warning,.button-small.cta,.butto-small.brandButton variations have been removed. They now default to theprimarybutton #567.layout-sidebar__side__inner .subtitlehas been deprecated and will be removed in a later version #593- Filtered Listings
checkboxesare now the same colour. The following classes have been removed #618.uomcontent .filtered-listing-select .filtered-listing-tag input[type='checkbox'][data-color='green'] + label.uomcontent .filtered-listing-select .filtered-listing-tag input[type='checkbox'][data-color='bronze'] + label.uomcontent .filtered-listing-select .filtered-listing-tag input[type='checkbox'][data-color='silver'] + label.uomcontent .filtered-listing-select .filtered-listing-tag input[type='checkbox'][data-color='blue'] + label.uomcontent .filtered-listing-select .filtered-listing-tag input[type='checkbox'][data-color='yellow'] + label
- Modal
data-modal-offsetprop for setting customoffsethas been removed #631 .uomcontent #uom-login.modal__dialogclass has been removed from the Page Header #650.button.softhas been deprecated in favour of.button--secondaryand will be removed in a later version #657
Before:
<button class="button soft">...</button>
<a class="button soft" href="#">...</a>
After:
<button class="button button--secondary">...</button>
<a class="button button--secondary" href="#">...</a>
- removed
.categoriesclass from Article Footer #641 - all uses of the
oldbrandcolour&typographycssvarshave beenremoved. If you were using these variables directly in your custom codebase, refer to Theme page for all thenewvariable names #697
Other changes
- removed
noto-seriffont #754 - split out
csscolourvariablesfromassets/shared/_vars.css➡️assets/shared/_brand.css&assets/shared/_theme.css#737 #746 #776 #778_brand.csshouses the official VID colours_theme.cssuses the colours from_brand.css- these are variables to be used throughout theDesign System
- tidied up
normalizingof base styles in_normalize.cssto letmodern-normalizedo it's thing #562 #565 #567 #604 #609 #632 #642 #737 #746 - updated default
:focus-visiblestate for all elements #632 #642 logosize now matchesgen2#573- removed
navybackground colour frombody#599 - removed
whitebackground colour from.page-inner,[role='main'], and.uomcontent#599 - aligned some typography css vars with
gen2#684 #691--ff-serif➡️--ff-lead--ff-sans➡️--ff-normal
- tidied up some Components
css- Timeline - #611 #763
- Filtered Listings - #618 #648 #746 #757 #773
- Headers - #674
- Block Listing - #698 #769 #767
- Course - #746
- Article - #641 #668 #708 #737
- Card - #646
- Enquiry - #622 #648 #699
- Events - #624 #644 #648 #706
- Page Header - #565 #567 #573 #601 #650 #651 #656 #746 #756
- Headers - #562 #668 #701 #746
- In-page Navigation - #599
- Modal - #631
- News Article - #647
- People - #703 #737
- Preview Banner - #669
- Quick Links - #639 #640
- Search - #608
- Tabs - #642 #654 #737
- Tags - #644
- Staff Dial - #737
Page Footer- #576nav#565 #599 #601 #642 #656 #744
- tidied up some Style Guide
css - removed
unstyledradio and checkboxesformelements #746 - removed some
formelementoverridesin other components #746 - reduced gap between
numberandtexton Steps List to matchgen2#572 - reduced the
paddingof Stepped List whennestedinside an Accordion #667 - removed extra
paddingbetween Events dates while onmobileviewport #706 - updated
checkicon #746 - updated
hamburgermenu #774- styled to match
gen2andgen4 - updated
menuandsearchicons backbutton now uses thechevron-lefticonclosebutton now uses thecloseicon
- styled to match
checkboxesnow uses the updatedcheckicon #746- Accordion now uses the
chevron-downicon #768 #777 - Modal
closebutton now uses theclosesvgicon#648 - Page Header menu now uses the
chevronsvgicon#648 - Tabs arrow
iconsnow uses thechevronsvgicon#648 - css
mixinsare now imported automatically usingpostcss-mixins#660 #693 - all
cssmixinshave been migrated into their ownseperatefiles so they can beimportedwithout the need for the accompanying componentcss#676 #694 - removed
gen-2-ported.css#576 - added sitenav padding vars to
assets/shared/_globals.css#605--sitenav-padding-sm--sitenav-padding-md--sitenav-padding-lg
- created
e2etests:visual snapshot&a11ytests for Theme pages #737visual snapshotformodal#631openingandclosingofsearchbutton in Page Header #565
- removed
formfrom People Profile Page as it was being captured elsewhere, removing the need for thissnapshotto be updated all the time #746 - removed
<div class="page-local-login" data-href="#" data-title="Login"></div>from Page Header #774 - updated
headingsinupgrade-guide.mdto link to their respectivereleaseso the user can easily see more information #796
Documentation updates
- updated the
mega-menuto usegen4v2.0.0#794 - updated
documentationspecificcssto use the newVID#637 #648 #659 #675 #737 - new Theme
documentationpage detailing all availablethemecss varaibles #737 #749 #758 #778 - created CMS
documentation - updated CMS
documentation - updated Style Guide
documentation- Backgrounds - #709
- Blockquote - #658
- Buttons - #657 #778
- Colour Palette - #556 #659 #737 #749
- Forms - #746
- Typography - #562
- updated Components
documentation- Block Listing - #769
- Forms - #746
- In-page Navigation - #610
- Modal - #631
- Timeline - #763
- added the ability to set a
background-colorusing theclassprop for component imports usingeleventy/_includes/component.html#746
include component class="bg-primary"
- Colour Palette
web componentnow has aborderset bydefaultremoving the need forshow-border="true"#749 - updated page titles to use
titlefromglobal.versioninstead ofhardcodedvalue #787 - removed mocking of
gen4version to ensure some tests don'tfailwhen a new version (lastest) is released #794 - made it easier to create release notes #795
- removed unnecessary
issuesfromrelease notesas they aredocumentedin their respective githubpr - updated github
prlinks to use the#hashinstead of the fullgithuburlhttps://github.com/unimelb/Gen3/pull/123➡️#123
- added
https://github.com/unimelb/Gen3/pulltoeleventy/_data/global.js
- removed unnecessary
- created new stories
primaryBackground - #709complexandfull-widthTimeline - #763defaultanddoubleBlock Listing - #767 #769- MCE Form - #746
eleventypages now have a uniqueeleventyNavigationkey #797- fixed an issue where the
menuon the Page Header wasn'tclosingwhen clicking on alevel 2orlevel 3item #756 - created
updateInvalidSelectsto dynamically add the invalid state toformelements on thedocumentationpages #633