v4.0.0
v4.0.0
Jan. 14, 2021
Breaking changes
- π₯ Remove related content styles from the design system (NP-1152)
- π£οΈ Callouts: New badge and modifier classes
- Modifier classes use BEM style, e.g.
cads-callout--adviser
vs.cads-callout-adviser
- Variants now use new
cads-badge
element for labels
- Modifier classes use BEM style, e.g.
- π Pagination links: Now have flex layout, fixes spacing between each item. All pagination list items require a
cads-paging__item
class.
New
- π Badges: New
cads-badge
element used in callouts and targeted content - π Breadcrumbs: New layout - chevrons at the front for increased legibility, layout bugs fixed (NP-1425)
- π£οΈ Callouts: Support callouts within callouts
- β½οΈ Footer: Update copyright year in footer (NP-1338)
- π Footer Feedback: add a class to allow selection of footer feedback link
- π Header: Links in the header now accept a
current_site
boolean in thelink
object to render a span instead of a link - π Links: added external link styling. Links within cads-prose are styled automatically (NP-1382)
- π Navigation: Header links are now added to the 'More' dropdown and no-js support (NP-1235)
- π― Targeted content: New adviser specific variant
Bugfixes
- π₯Ύ Footer: Correct spelling of policy research
- π Navigation: Fix visited link colour in global nav
- β¬ Tables: Give tables an explicit white background to allow them to be used against darker backgrounds
- π: Navigation: Padding, spacing and mobile design improvements (NP-1026)
- π― Targeted content: Design updates to targeted content button styles
- π€ Header: Search reveal button now has correct focus highlight. (NP-1330)
- π Footer: Use the grid to control footer alignment. (NP-1318)
Docs
- π Contact Details: documentation updated (NP-1028)