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
one
column 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
breakpoint
by 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
uppercase
helper -.text-uppercase
#582
<p class="text-uppercase">...</p>
- You can now set a
1/1
ratio for Embedded media -.embed--square
#548
<div class="embed embed--square">...</div>
- New and Improved Design System Previewer #498
- Instead of using a
bookmarklet
to persistversions
across subsequent page loads, you can now append?preview=[latest, test, vx.x.x]
to anygen2
andgen3
website hosted onMatrix CMS
. - A
banner
is shown at the bottom of the screen where you canreset
back to theproduction
version - 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 bedeprecated
in 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_9
is nowembed--widescreen
. Please update to this new class as the old one will bedeprecated
in 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
images
having the sameaspect-ratio
- but this is not always possible. By defaultimages
are now cropped to a16:9
ratio. They can also cropped to a1:1
ratio by using thecard__image--square
class. #569
<img class="card__image card__image--square" alt="..." src="...">
- Page Headers containing very long
breadcrumbs
are now hidden behind thesearch
&menu
buttons #563 - Improvements to the Grid column classes -
grid--cols-2
,grid--cols-3
, andgrid--cols-4
#549- Adjusted the
two
,three
, andfour
column grid to change fromone
➡️two
columns on--bp-tablet
- Adjusted the
three
column grid to change fromtwo
➡️three
columns on--bp-desktop
- Adjusted the
four
column grid to change fromtwo
➡️four
columns on--bp-x-desktop
- Adjusted the
- Grid now allows for different element types when using
.grid--fill-last
&.grid--fill-first
:first-of-type
and:last-of-type
only 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
layouts
andcomponents
- Created documentation pages:
- Titles -
.title
and.subtitle
heading 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
&js
files #550 - Typography - added text helpers #541 #560
- Colour Palette - added
colours
palette #547
- Migrated
Aligned title
andLead paragraph
from Typography ➡️ Titles #560 - Removed Layouts from the
mega-menu
as they are outdated and only used fore2e
snapshot tests #552 - Removed
Homepage - light background
from Layouts #566
Other changes
- Updated
gen4
version fromv1.2.6
➡️v1.2.7
#568 - Updated
webpack
to allow inlining ofcss
by using?inline
#498
import styles from './index.css?inline';
- Some minor css changes:
- Figure now functions the same as
.figure--min
so you may not need to use it anymore #548 - Tidied up
top
alignment oftext
andimage
inwith-figure
components #548 - Added
display: flow-root
to.with-figure
to remove requirement of.clearfix
#548 iframe[src*='//www.youtube.com']
,iframe[src*='//player.vimeo.com']
, andvideo
default settings updated to account for uses outside of Figure and Embedded media #548- Removed
padding
on.center
class #544 - Removed
body
min-height: 100%
fromassets/shared/_normalize.css
#557 documentation
relatedcss
&js
is now transpiled & bundled withwebpack
#555ace-editor
&rgb-hex
are now imported locally #555- Updated
.gitignore
,.prettierignore
, and.stylelintignore
#564- Removed
.docker
folder - Updated
_site
➡️_site*
- Removed
- You can now configure the number of
cores
to use fore2e
tests in.env
#586
TEST_WORKERS=4
TEST_PORT=8081
- Changed
e2e
visual snapshots test threshold from0
➡️0.2
as it was causing some tests to fail when nothing had been changed #585 - Updating
gen3
orgen4
versions caused somee2e
tests to fail as they were referencing their older versions. They are now beingmocked
so they always stay the same #553 - Created
e2e
tests for Backgrounds documentation page #558 e2e
snapshots now usebody
as the selector allowing whole page snapshots #557e2e
snapshots tests can now include theheader
andfooter
as part of their snapshot #557
await checkPageSnapshot({ header: true, footer: true });
- Sometimes the
node
process hung when the tests finished or were cancelled by the developer causing subsequent tests to fail as it couldn't access the existingprocess
. SettingreuseExistingServer: false
to always use a new node proecess fixes this #574 - Added
cross-env
toplaywright.config.js
to allowwindows
machines to run thee2e
tests #574 - Removed
util
from.eleventy.js
as it wasn't being used #498 - Split Page Header & Preview Banner
e2e
tests into separate files #584 e2e
tests now hidevideo
elements as they were causing flaky tests #548