v13.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.
Breaking changes 💥
- Grid now defaults to a
onecolumn grid instead offour. To use a four column grid you will need to addgrid--cols-4#549
Before:
<div class="grid">...</div>
After:
<div class="grid grid--cols-4">...</div>
New features ✨
- You can now specifiy the number of Grid columns per
breakpointby using the format:grid--cols-[xs,sm,md,lg]-[4,3,2]#549
<div class="grid grid--cols-xs-3 grid--cols-md-2">...</div>
- Typography
uppercasehelper -.text-uppercase#582
<p class="text-uppercase">...</p>
- You can now set a
1/1ratio for Embedded media -.embed--square#548
<div class="embed embed--square">...</div>
- New and Improved Design System Previewer #498
- Instead of using a
bookmarkletto persistversionsacross subsequent page loads, you can now append?preview=[latest, test, vx.x.x]to anygen2andgen3website hosted onMatrix CMS. - A
banneris shown at the bottom of the screen where you canresetback to theproductionversion - https://www.unimelb.edu.au/?preview=latest -
gen2 - https://students.unimelb.edu.au/?preview=latest -
gen3
- Instead of using a
Add to <head> of the document
<script src="//dds-gen3.web.unimelb.edu.au/v13.0.0/preview-banner.js" defer></script>
Deprecation notices ⚠️
- Grid column classes
grid-cols-[2,3,4]have been renamed togrid--cols-[2,3,4]. Please update to these new classes as the old ones will bedeprecatedin a later version #549
Before:
<div class="grid grid-cols-2">...</div>
After:
<div class="grid grid--cols-2">...</div>
- Embedded media class
embed--21_9is nowembed--widescreen. Please update to this new class as the old one will bedeprecatedin a later version #548
Before:
<div class="embed embed--21_9">...</div>
After:
<div class="embed embed--widescreen">...</div>
Bug fixes 🐛
- The Cards component relies on all
imageshaving the sameaspect-ratio- but this is not always possible. By defaultimagesare now cropped to a16:9ratio. They can also cropped to a1:1ratio by using thecard__image--squareclass. #569
<img class="card__image card__image--square" alt="..." src="...">
- Page Headers containing very long
breadcrumbsare now hidden behind thesearch&menubuttons #563 - Improvements to the Grid column classes -
grid--cols-2,grid--cols-3, andgrid--cols-4#549- Adjusted the
two,three, andfourcolumn grid to change fromone➡️twocolumns on--bp-tablet - Adjusted the
threecolumn grid to change fromtwo➡️threecolumns on--bp-desktop - Adjusted the
fourcolumn grid to change fromtwo➡️fourcolumns on--bp-x-desktop
- Adjusted the
- Grid now allows for different element types when using
.grid--fill-last&.grid--fill-first:first-of-typeand:last-of-typeonly work when the child elements are the same, but won't work if they are different. It has been changed to use:first-child&:last-child#577
Documentation updates
- Created Examples documentation page for specific
layoutsandcomponents - Created documentation pages:
- Titles -
.titleand.subtitleheading classes #560 - Background #554
- CTA Footer #544 #546
- Quicklinks #544
- Titles -
- Updated documentation pages:
- Figure #548
- Embedded media #548
- Mega Menu - added instructions on how to import
css&jsfiles #550 - Typography - added text helpers #541 #560
- Colour Palette - added
colourspalette #547
- Migrated
Aligned titleandLead paragraphfrom Typography ➡️ Titles #560 - Removed Layouts from the
mega-menuas they are outdated and only used fore2esnapshot tests #552 - Removed
Homepage - light backgroundfrom Layouts #566
Other changes
- Updated
gen4version fromv1.2.6➡️v1.2.7#568 - Updated
webpackto allow inlining ofcssby using?inline#498
import styles from './index.css?inline';
- Some minor css changes:
- Figure now functions the same as
.figure--minso you may not need to use it anymore #548 - Tidied up
topalignment oftextandimageinwith-figurecomponents #548 - Added
display: flow-rootto.with-figureto remove requirement of.clearfix#548 iframe[src*='//www.youtube.com'],iframe[src*='//player.vimeo.com'], andvideodefault settings updated to account for uses outside of Figure and Embedded media #548- Removed
paddingon.centerclass #544 - Removed
bodymin-height: 100%fromassets/shared/_normalize.css#557 documentationrelatedcss&jsis now transpiled & bundled withwebpack#555ace-editor&rgb-hexare now imported locally #555- Updated
.gitignore,.prettierignore, and.stylelintignore#564- Removed
.dockerfolder - Updated
_site➡️_site*
- Removed
- You can now configure the number of
coresto use fore2etests in.env#586
TEST_WORKERS=4
TEST_PORT=8081
- Changed
e2evisual snapshots test threshold from0➡️0.2as it was causing some tests to fail when nothing had been changed #585 - Updating
gen3orgen4versions caused somee2etests to fail as they were referencing their older versions. They are now beingmockedso they always stay the same #553 - Created
e2etests for Backgrounds documentation page #558 e2esnapshots now usebodyas the selector allowing whole page snapshots #557e2esnapshots tests can now include theheaderandfooteras part of their snapshot #557
await checkPageSnapshot({ header: true, footer: true });
- Sometimes the
nodeprocess hung when the tests finished or were cancelled by the developer causing subsequent tests to fail as it couldn't access the existingprocess. SettingreuseExistingServer: falseto always use a new node proecess fixes this #574 - Added
cross-envtoplaywright.config.jsto allowwindowsmachines to run thee2etests #574 - Removed
utilfrom.eleventy.jsas it wasn't being used #498 - Split Page Header & Preview Banner
e2etests into separate files #584 e2etests now hidevideoelements as they were causing flaky tests #548