Skip to content

Latest commit

 

History

History
1392 lines (901 loc) · 51.8 KB

CHANGELOG.md

File metadata and controls

1392 lines (901 loc) · 51.8 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

Added

  • Added support for the Dynamic Type setting in iOS, allowing users to change the default font size

Changed

  • Added an extra heading for the legal links in the footer component and tweaked the heading for the social media links
  • Font size of quick filters component reduced

Deprecated

Removed

Fixed

  • Fixed the hover and focus outline colour of the logo in the global header component
  • Added width and height attributes to inline SVGs
  • Top border on cards with no images fixed for high contrast mode

Security

0.2.18 - 2024-11-05

Changed

  • Added aria-label attributes to all elements with custom title attributes
  • Added a title for items in pagination components ("Page x")
  • The LTS version of NodeJS used has been upgraded from iron (20.x) to jod (22.x)

Removed

  • Pagination items no longer have a label attribute - this is instead defined as Page x where x is the number attribute
  • Removed the warnings about importing Google Fonts

Fixed

  • The click area for the logo link in a header component on tiny devices no longer stretches to fill the header
  • Top borders on card components displayed on high contrast displays have been fixed

0.2.17 - 2024-10-23

Changed

  • Updated header and global header HTML to allow adorn-able logos
  • Reduced specificity of some CSS selectors for card elements

0.2.16 - 2024-10-16

Changed

  • Changed the size of small images in horizontal cards

Fixed

  • Updated deprecated color.red(), color.green() and color.blue() SASS functions
  • Fixed layout issues for fullscreen gallery components when viewed in landscape
  • Removed list marker colour on yellow accented blocks
  • Fixed layout of horizontal cards with no images

0.2.15 - 2024-10-07

Added

  • Buttons can now have an html property that allows HTML to be used in place of the text property

Fixed

  • Change border widths on global header items from 0.5px to 1px to help with sub-pixel rendering
  • Missing background colour added for focused buttons with tna-button--solid-hover
  • Logo link in header and global header components updated to address image link purpose WCAG failure
  • Added aria-label to image caption on hero components
  • Added title attributes to social links in footer components
  • Fix details expanded state not announced on iOS (issue #5089 on govuk-frontend)
  • Fixed file list accessible link names to include file size and type
  • Accessibility and usability improvements made to the gallery component with regards to HTML and JavaScript

0.2.14 - 2024-09-18

Added

  • Items in a files list can be made entirely clickable using the fullAreaClick property

Changed

  • Updated the default aria-label on breadcrumbs components from "Breadcrumb" to "Breadcrumbs"
  • Increased width of checkbox and radio components to allow more click area

Removed

Fixed

  • Fixed colour of hovered buttons using the <button> element
  • Improved cards CSS for IE11

0.2.13 - 2024-09-13

Added

  • Added the option for a darker <hr> element with tna-hr-dark
  • Tables needing horizontal scrolling can be focused on and receive a "(scroll to see more)" note added to their caption

Changed

  • Added outlines to hovered and focused cards with the full click option enabled
  • touched, tabbed and clicked template modifiers added as part of initAll()
  • Print modifiers moved into initAll()

Removed

  • Removed customisable colour variables $dark-grey, $base-font, $link-colour and $link-colour-visited
  • Removed the ability to add attributes to items, previous buttons and next buttons in pagination components

Fixed

  • Added missing underline to focused buttons using on the <button> element
  • Links around card images have been hidden from assistive technologies

0.2.12 - 2024-09-05

Added

  • Items in a file list now require an ID so that an aria-describedby attribute can be used to describe the file details

Changed

  • Updated default text on cookie banner hide buttons
  • Pagination arrows are now embedded SVGs rather than requiring the Font Awesome icons CSS
  • "Previous" and "Next" text in pagination buttons is no longer hidden on tiny devices

Fixed

  • Increase thickness of underline for focused elements for when the focus indicator doesn't provide sufficient contrast with the background
  • Don't add a ga-disable- variable to the window and set a disable cookie without having a GA4 ID
  • Warning text colour on dark themes fixed
  • Added missing Google Fonts file in prototype kit templates

0.2.11 - 2024-08-30

Removed

  • Removed $import-google-fonts option
  • Removed the @import rule for Google Fonts

Fixed

  • Increased z-index of active summary buttons on accordions

0.2.10 - 2024-08-30

Added

  • $import-google-fonts option (default: true) which can disable the inclusion of Google Fonts using an @import declaration
  • A new all+analytics.js file now exists which can be used as a drop-in replacement for all.js
  • Google Analytics 4 can be automatically be instantiated by adding a data-ga4 property to the <html> element
  • New horizontal card options to control image width and position
  • Added a CSS file for basic IE support (ie.css)

Changed

  • Removed the top and bottom padding of the breadcrumbs component
  • Change the order of the HTML in hero components to put the caption below the image
  • Refactored the card component to use CSS grid

Fixed

  • Changed conflicting GA4 window object instance in GA4 class from TNAFrontendAnalytics to TNAFrontendAnalyticsGA4
  • Adjusted margin bottom of narrow, shifted hero components

0.2.9 - 2024-08-21

Changed

  • Removed :focus styles and replaced with :focus-visible but retained outline on :active elements
  • Light accent blocks appear normal accent colours in dark themes
  • Added parsed meta tags to initial gtm.js analytics event

0.2.8 - 2024-08-16

Added

  • New option accentMeta on card component to make meta tags accented
  • Added image loader animations to card, hero, index grid, gallery and picture components
  • Containers can be nested with .tna-container--nested
  • Sticky sidebars can be "unstuck" on smaller devices with .tna-sidebar--static-on-mobile
  • Added classeless styles for <address> elements

Changed

  • Refactored tabs component
  • Removed unnecessary title attributes from footer, gallery, hero and index grid components
  • Added lazy loading to gallery images
  • The title of gallery components is now optional
  • Reduced space above details components
  • Added side padding to plain picture components
  • Adjusted spacing of <p> elements inside <li> and <dd> elements

Removed

  • Removed container --no-padding-all classes and replaced with --no-padding classes for both containers and columns

Fixed

  • Removed max height for gallery components

0.2.7 - 2024-08-12

Added

  • Content in the cookie banner component is now customisable

Fixed

  • Change skip link colours when hidden to avoid accessibility failures being raised
  • Fixed incorrect use of navigationId and topNavigationId in global header component
  • Fixed padding of sticky sidebars
  • Fixed header navigation toggle analytics

0.2.6 - 2024-08-02

Added

  • Spaced option for description lists with .tna-dl--spaced

Changed

  • Removed the tabindex on open accordion items
  • Theme selector icons in footer changed to SVGs
  • Updated style of gallery next and previous buttons
  • Header and global header menu buttons now have text
  • Reduced size of logo in header component
  • Header markup changed to align more closely with global header
  • Updated the newsletter block style in the footer

Removed

  • Pressing the up and down keyboard arrows no longer changes images within a gallery

Fixed

  • Pressing Escape whilst focused anywhere on the header or global header components will close the menu if it is open
  • Icon vertical alignment fixed in description lists

0.2.5 - 2024-07-30

Changed

  • Change default cookie age back to 31536000 (1 year) but allow { session: true } for session cookies
  • Allow default cookie age to be set on instantiation

0.2.4 - 2024-07-30

Added

  • New style added for plain picture components

Changed

  • Allow search field to be smaller than the browser default
  • Reduced space between paragraphs in hero captions
  • Default cookie age changed from 31536000 (1 year) to null (session cookie)

Fixed

  • Added missing space above gallery component
  • Updated gallery analytics

0.2.3 - 2024-07-30

Added

  • Analytics added for accordion, detail and gallery components

Changed

  • Large paragraphs (.tna-large-paragraph) that follow headings and heading groups have less top margin
  • Switch .tna-gallery--fullscreen class for .tna-gallery:fullscreen

Fixed

  • Further fixed gallery component layout when CSS loads but JS fails
  • Buttons, inputs, selects and textareas now use the correct typeface rather than the browser default

0.2.2 - 2024-07-24

Added

  • Allowed galleries to not show the first image by default using showGrid

Changed

  • Allowed the arrows to appear on card heading links
  • The header component no longer requires the tna-template--js-enabled class on the <html> element to show and hide on smaller devices

Fixed

  • Arrow colour for visited heading links with the class tna-link--no-visited-state
  • Incorrect padding on the bottom of horizontal cards
  • Removed space between heading and exclamation mark on warning components
  • Fixed gallery component layout when CSS loads but JS fails

0.2.1 - 2024-07-19

Added

  • Added itemHeadingLevel to file list component and changed file titles to headings
  • Ordered and unordered lists can be spaced out with .tna-ul--spaced and .tna-ol--spaced
  • The contents of the details element can be called in Nunjucks
  • Cards can be made entirely clickable using the fullAreaClick property

Changed

  • Tables are no longer automatically 100% width but can be made to be with .tna-table--full
  • <ul> elements with the class .tna-container have their list-style removed
  • The default htmlElement option for the card component is now <article>
  • Gallery item captions are no longer wrapped in a <p> element
  • Updated the heading link arrow style
  • Added more space below table elements
  • Removed focus shift on accordion items upon opening
  • Changed the arrows on gallery buttons from Font Awesome SVGs to sharp CSS arrows

Removed

  • Cards can no longer have plain supertitles

Fixed

  • Fixed spacing in nested lists
  • Set icon size for file list component for better viewing without CSS

0.2.0 - 2024-07-15

Changed

  • Increased maximum depth of contents sidebar to three levels
  • Removed the redundant role attribute from <fieldset> of the date input component
  • Allow each item in a checkboxes component to have a name attribute that will override the main name
  • Renamed "files" component to "files list" (files -> files-list, tnaFiles() -> tnaFilesList())
  • Renamed "featured records" component to "records list" (featured-records -> records-list, tnaFeaturedRecords() -> tnaRecordsList())
  • SCSS mixin colour.light changed to colour.always-light
  • Index grid items within contrast blocks are now accented
  • Colour variables --button-accent-text and --button-accent-background have changed to --button-accented-text and --button-accented-background
  • Colour variable form-error split into form-error-border and form-error-text
  • Moved the grid component to utilities

Deprecated

  • Removed colour.plain SCSS mixin

Removed

  • Removed search filters component
  • Removed sensitive image component
  • Removed width: 100%; reset of <video> and <canvas> elements

Fixed

  • Added missing space above files list
  • Fixed alignment of warning text when a short body is used
  • Incorrect aria-labeledby attribute changed to aria-labelledby in gallery items
  • Add better labels for buttons in gallery component

0.1.65 - 2024-07-11

Added

  • New files list component
  • .tna-!--hide-on-print class added for hiding elements when printing
  • Separate print stylesheet
  • Buttons can now include an SVG icon
  • Package now includes config files for Babel, ESLint, HTML-validate and Stylelint

Changed

  • Refactored gallery component
  • Allow the size of the heading in the sidebar component to be changed
  • Refactored accordion component for better accessibility
  • Picture transcripts are hidden with until-found
  • Open all accordion items and details elements when printing
  • Changed heading property of sidebar components to title

Removed

  • Removed all print styles from all.css

Fixed

  • Fixed aria-controls property of accordion buttons
  • All component attributes can now have blank values

0.1.64 - 2024-06-24

Fixed

  • Fixed the optimised .tna-header--no-link-arrow class (again)

0.1.63 - 2024-06-24

Fixed

  • Fixed the optimised .tna-header--no-link-arrow class

0.1.62 - 2024-06-24

Changed

  • The default headingSize for cards has changed from s to m
  • The font size of the scene setter has been reduced

Deprecated

  • The small scene setter style has been removed

Fixed

  • Removed extra spaces from template classes and attributes
  • Fix horizontal card inner padding

0.1.61 - 2024-06-18

Fixed

  • Fixed some colours combinations

0.1.60 - 2024-06-18

Added

  • New sidebar component

Changed

  • Don't reload the window when disableTracking() is called in the analytics library
  • Added warning when using typography.relative-font-size() to move to typography.font-size() (relative-font-size will be removed in a future release)

Fixed

  • Fixed bug with standard cards (not tinted, contrasted or accented) having extra padding when in a tinted, contrasted or accented ancestor block
  • Fixed standard button colours
  • Changed order of index grid items HTML to make more sense

0.1.59 - 2024-06-13

Added

  • Allow lazyImages attribute for lazy loading of index grid images
  • Dashed lists can be used with .tna-ul--dashed and .tna-ol--dashed which replace the markers with dashes

Changed

  • The transcript button on picture components no longer gets a tna-picture__toggle-transcript--opened class when opened

Fixed

  • Fix the error when calling disableTracking() within the analytics library

0.1.58 - 2024-06-05

Added

  • Hero component can now have actions
  • Hero component has a new narrow option for shorter headers

Changed

  • Theme selector is hidden when forced colors mode is enabled
  • The markup for a chip list has been updated
  • Better colours and contrasts for coloured elements within contrast and accent blocks
  • Switched from using specific --accent modifier classes to the generic tna-background-accent classes for card, cookie banner, header, hero and phase banner components

Removed

  • Removed external icon from header exit link

Fixed

  • Fixed styling for compound filters in forced colors mode
  • Fixed colour for header exit link in light high contrast mode
  • Added title attribute to social links in the footer to help with navigation as well as to the theme selector buttons

0.1.57 - 2024-05-30

Added

  • Index grids can now have supertitles, hrefClasses and hrefAttributes
  • Quick filters component styling has changed and has a new fill option
  • Picture components can now have alternative sources

Changed

  • Detail summaries no longer stretch the full width of the container
  • Index grid headingHref changed to href
  • Common page elements such as headers and footers are hidden when using print styles
  • Accented keylines now use the more saturated variant of their colour for increased contrast with other accented elements

Deprecated

  • Removed unused imageType attribute from hero components

Fixed

  • The theme stored in a cookie is now reflected in pages using the prototype kit
  • Removed duplicated source from hero image <picture> elements
  • Better support for forced colors mode on several components
  • Remove duplicated <main> element on index-grid and list prototype kit templates
  • Accented header component colour fixed
  • Removed hover state for header logos with no link

0.1.56 - 2024-05-28

Fixed

  • application.css file no longer included when using the prototype kit

0.1.55 - 2024-05-28

Added

  • New accordion and details components added
  • Card images can be loaded lazily with lazyImage

Changed

  • Standard application.css file will be included when using the prototype kit

Fixed

  • Fixed spacing in nested lists
  • Small images in hero components on smaller devices now fill the width of the component
  • Prototype kit asset paths fixed

0.1.54 - 2024-05-13

Changed

  • assetPath now requires a trailing slash

Fixed

  • Fixed issues with some templates, particularly around the theme selection

0.1.53 - 2024-05-13

Added

  • Footer component can now contain an optional theme selector which requires the component to have the TNA cookies library initialised
  • Hero components have a new split layout option

Changed

  • Removed single content property in hero components in favour of separate fields (i.e. title, text/body)
  • Nested unordered lists use the same marker
  • The cookie library is now a singleton
  • The analytics library instance is saved to the window object
  • Improved typeface definitions and includes
  • Yellow buttons are now brown to meet WCAG Success Criterion 1.4.11 (Non-text Contrast - Level AA)
  • Box shadow added to picture components

Fixed

  • Date search component text updated to use the defined detail font

0.1.52 - 2024-04-04

Changed

  • Better support for colour themes and high contrast options

Deprecated

  • Removed tna-template--light-theme option - tna-template is light by default
  • Removed accent-background and dark mixins from colour tools

Fixed

  • Fix incorrect tna-template--black-accent class
  • Removed all redundant high contrast classes

0.1.51 - 2024-04-04

Added

  • "Thick" and button border widths are both customisable
  • The colour of a card label can be changed
  • Accent colours can be set on blocks with tna-accent-pink, tna-accent-orange, tna-accent-yellow, tna-accent-blue and tna-accent-green
  • Hero components can now have a "shifted" style option and can have contrasting, tinted and accent backgrounds

Changed

  • Improved markup of warning component
  • --page-background is now --background

Deprecated

  • Deprecated support for the tna-template--high-contrast-theme class - high contrast themes can be used by setting a preference for higher contrast in the operating system
  • colour-font() no longer has the ability to define the default palette

Removed

  • Fallbacks for custom CSS properties are defined in the var() function rather than in a separate property - this removes any colouring support for browsers without custom CSS properties
  • Hero components no longer have heading, body or text properties - these have been replaced with a content property

Fixed

  • Fixed column margin removal classes
  • Added missing IDs to some form elements so they can be linked top from the error summary
  • Active states of checkboxes and radios fixed

0.1.50 - 2024-03-28

Added

  • Tinted cards are now an option
  • Blockquotes have quotemarks added with CSS
  • New "medium" (600) Open Sans font weight added
  • Ability to remove margins from left and right of columns

Changed

  • Renamed "message" component to "warning"
  • Changed all #000 colours to #010101
  • The newsletter subscribe button in the footer is no longer accented
  • Added role="group" to date input component <fieldset>
  • Colours changed for black theme accent blocks

Fixed

  • Fixed collapsed padding on details dropdown of hero component
  • Added heights to Font Awesome SVGs

0.1.49 - 2024-03-26

Added

  • Spacing can now be defined in relative terms (e.g. 1, 3, 0.25) which is converted to absolute values
  • Added a $spacing-unit-px variable to allow the setting of the base unit for all spacing
  • Heading sizes and line heights are now customisable

Changed

  • Changed grid dimensions (max width, gutters etc.) from rem units to px
  • Changed all spacing (margin, padding and gap) to use spacing.space() tool for relative sizes
  • Tweaked some of the dark and contrasting colours

Removed

  • Removed strapline option for global header
  • Removed all redundant role attributes in line with GOV.UK Frontend v5.3.0

Fixed

  • Removed explicit font size on tna-template allowing browser-defined font sizes
  • Removed focus from elements with a tabindex of -1
  • Fixed background colour of headers on system themes

0.1.48 - 2024-03-21

Added

  • Navigation dropdowns in headers can be closed using the Escape key

Changed

  • Changed the aria-current attribute of the current header menu item from true to page
  • Switched back from <menu role="list"> to <ul> elements
  • Changed the line height of tna-heading-xl
  • Updated heading sizes for better consistency across devices

0.1.47 - 2024-03-19

Version bump

0.1.46 - 2024-03-19

Version bump

0.1.45 - 2024-03-19

Changed

  • Updated footer links
  • Removed inline styles for logos in footer and headers
  • Reduced maximum height of the hero component

0.1.44 - 2024-03-14

Added

  • TikTok is available as a social icon in the footer
  • Visually hidden brackets added to index grid item subtitles
  • <main> element can be styled with a tna-main class
  • Index grid headings can be hidden by setting headingLevel to 0
  • Template fixtures are now included

Changed

  • Default maximum container width changed from 75.25rem (1204px) to 80rem (1280px)
  • GA4 analytics implementation updated
  • Updated aria-label attributes on navigation elements

Deprecated

  • Removed tnaFrontendCssPath and tnaFrontendJsPath variables from _generic.njk template

Removed

  • Card actions can no longer have icons
  • Removed explicit role="navigation" on pagination component and role="main" on <main> elements
  • Removed defaults from stylesheets and bodyEnd of _generic.njk template

Fixed

  • Card action classes and attributes fixed

0.1.43 - 2024-03-11

Added

  • Global active style added

Changed

  • The default pagination style is plain buttons but can be changed with the solid option
  • Updated the HTML of the headers, adding some attributes to the HTML to reduce reliance on JavaScript
  • Switched from using <ul> to <menu> in the headers and footer
  • Added some attributes to the HTML of the headers to reduce reliance on the JavaScript
  • Cards without images now get a top border

Fixed

  • Fixed style of icon-only buttons in a small button group

0.1.42 - 2024-03-01

Added

  • Error summary component
  • Initial release of analytics library
  • Initial idea for search filters
  • Allow structured data in breadcrumbs with structuredData

Changed

  • filters are now quick-filters (and the Nunjucks has changed from tnaFilters to tnaQuickFilters)
  • Border widths around inputs have been increased
  • Removed tna-ul tna-ul--plain classes from compound filters

Removed

  • Removed the automatic tna-form__ prefix from form field IDs

0.1.41 - 2024-02-27

Fixed

  • Footer link URLs

0.1.40 - 2024-02-27

Changed

  • Footer social links structure and HTML changed
  • Header icons changed to SVGs
  • Crown logo in footer changed from St Edward's Crown to Tudor Crown
  • Added navigation toggle button to HTML of both headers
  • Allow navigation groups in footer to have hidden titles
  • utilities/_global.scss split into other files _reset.scss and _areas.scss

Removed

  • Removed option for brand icons on buttons, card actions and headers
  • Removed Font Awesome icon selection for header and footers
  • No init method for component JavaScript - components are now initialised on instantiation (new Header($header).init() -> new Header($header))

0.1.39 - 2024-02-19

Added

  • Automated AXE checks now include WCAG 2.2
  • Lazy loading for images in picture component

Changed

  • Changed spacing between navigation items in header
  • tna-blockquote__author changed to tna-blockquote__citation
  • Added default CSS export in package.json
  • Set global header background to pure black (#000) on dark themes

Removed

  • Ability to tint hero images

Fixed

  • Stopped logo from shrinking with longer straplines in headers
  • The message component has a header rather than an icon which provides a better page landmark
  • Hid some CSS pseudo elements from screen readers

0.1.38 - 2024-02-13

Security

  • Updated dependencies

0.1.37 - 2024-02-13

Added

  • New global header component

Changed

  • Changed the aspect ratio of the hero image to be 5:2
  • Selected state of header component changed
  • Phase banner font size reduced
  • Header component spacing and sizing tweaked to more closely align to the global header
  • Header and footer SVG logos changed to use currentColor as the foreground colour with a transparent background
  • Removed "link" icons from external links in the footer

Fixed

  • Allowed taller images in picture elements on tiny devices
  • Fixed focus styles for always-light components (e.g. text inputs) on high contrast themes
  • Added link to the National Archives mailing list in footer
  • Added <title> to inline SVGs in header and footers
  • Added aria-hidden="true" to all Font Awesome icons

0.1.36 - 2024-02-06

Changed

  • Tab elements in high contrast mode have an extra keyline to help with visibility
  • The header element no longer uses background tint in high contrast mode
  • The default cookie banner colour is dark on light but can be changed with a style attribute or classes such as tna-cookie-banner--contrast
  • The card style of boxed has been changed to contrast in line with other components
  • The background tint colour on the light theme is slightly darker for better contrast with the page background
  • Set smaller minimum width for search field inputs
  • Added more space between the text and chevron in a heading link
  • Split out Font Awesome into a separate CSS file
  • Change the default htmlLang from en-GB to en
  • Changed the aspect ratio of the hero image to be closer to a 3:1
  • Update large heading size to not be smaller than medium headings on medium devices
  • Remove italicised text from picture element captions and blockquotes, update font sizes
  • Reduce padding between checkboxes, radios and their labels when small
  • Reduce padding on blockquotes on mobile

Removed

  • Removed option for tna-search-field--no-border - borders are dictated by the background colours and page theme

Fixed

  • Picture elements in high contrast mode have improved borders with no gaps

0.1.35 - 2024-01-16

Added

  • More icon sizes added

Changed

  • Images on horizontal cards are now at least a 3:2 aspect ratio
  • Icon assets have been renamed from apple-touch-icon-xxx.png to icon-xxx.png

0.1.34 - 2024-01-10

Added

  • Base template can now accept htmlAttributes
  • Compound filters can be used to show currently selected search filters

Changed

  • Changed attributes to formGroupAttributes and classes to formClasses on checkboxes and radios - attributes and classes now get applied to each checkbox and radio element

Fixed

  • Fixed href property of pagination previous and next links

0.1.33 - 2023-12-29

Added

  • Added italic version of Open Sans

Changed

  • The default cookie banner colour is dark on light but can be changed with a style attribute or classes such as tna-cookie-banner--contrast
  • The card style of boxed has been changed to contrast in line with other components
  • Changed tna-select--plain to tna-select--styled
  • Updated button styles - icon sizes, padding and gaps on small and icon-only buttons
  • Removed slash on void elements (updating <hr /> to <hr>)
  • Italicise picture element captions to distinguish from regular text
  • Use text-wrap: pretty; for headings

0.1.32 - 2023-12-18

Added

  • Mixins for "always light" and "always dark"

Changed

  • Text-based form inputs (text input, search field, select, date search, date input and textarea) are always "light" themed with dark text on a light background

0.1.31 - 2023-12-14

Added

  • Picture elements can have multiple tabs and customisable open/close button text
  • A separate @nationalarchives/frontend-cookie-banner package is published for services just wanting to use the new TNA Cookie Banner

Changed

  • Added XML and DOCTYPE to src/nationalarchives/assets/images/tna-square-logo.svg
  • Removed fa-fw from some icons
  • Message component has a <div> rather than a <p> for the message which allows HTML as content
  • Hero component caption allows HTML rather than assuming text
  • Picture elements have a tinted background, a maximum height for images and break out of the grid on tiny devices
  • Changed hero caption icon text from "Image caption" to "About this image"
  • Updated the cookie banner attribute data-policies-key to data-policieskey

Removed

  • Picture elements no longer have translation and transcript options (see "Added" above for alternative)

0.1.30 - 2023-12-07

Added

  • <dl> elements can now be stacked with <dl class="tna-dl tna-dl--stacked">

Changed

  • Cookies class parameter extraPolicies moved to key inside the options object parameter

Fixed

  • Chip colours and icons in chip lists fixed
  • Better support for <dl class="tna-dl"> elements
  • Removed some :has CSS selectors for better support with Firefox

0.1.29-prerelease - 2023-12-01

Changed

  • Light font colour changed for better colour contrast on light accented backgrounds

Removed

  • High contrast themes don't have outlines when hovering over links

Fixed

  • Date search predefined value fixture amended
  • Light icons can be used on light accented backgrounds

0.1.28-prerelease - 2023-11-30

Added

  • Buttons can now have buttonType which sets the type attribute for <button> elements

Changed

  • Changed style of filters element to match with accent colour

Removed

  • Removed title attribute from tabs and aria-label from HTML

Fixed

  • Fixed HTML validation errors

0.1.27-prerelease - 2023-11-29

Fixed

  • Added the correct aria-label in index grid components

0.1.26-prerelease - 2023-11-29

Added

  • Form element components have been added: checkboxes, date input, date search, radios, search field, select, text input and textarea
  • High contrast support for chip lists with icons
  • Allow custom cookie path to be passed to cookie banner
  • Index grids can have text/body as well as a title

Changed

  • Card meta information changed to chip list
  • Improvements to high contrast modes
  • Link colours changed for better contrast
  • Index grid heading options have been flattened to match other components
  • Pagination arrows switched from SVGs to Font Awesome icons

Deprecated

  • Removed generic accent CSS variable
  • The black theme accent has been removed

Fixed

  • Multiple line spacing for chip lists fixed
  • Accented chips can now be used on accented backgrounds
  • Index grid can now be used on a contrast background

0.1.25-prerelease - 2023-11-16

Added

  • Grid columns can be aligned along the cross axis with classes tna-column--align-top, tna-column--align-bottom and tna-column--align-centre
  • Actions and items using the href attribute on cards can now have custom classes and attributes
  • Events can now be added when cookie preferences change
  • Table styles added
  • Pagination component has the option to have no numbers
  • Table wrapper for tables wider than the current viewport

Changed

  • Change many instances of Font Awesome icons to a fixed width
  • Adjusted the width of the hero caption
  • Removed margin and padding from all elements by default
  • The standard cookie policies are always essential, usage and settings - other custom policies can be added
  • Focus outline on dark themes has changed from blue to orange to avoid colour conflict with links

Removed

  • Removed CSS to counter conflicting GOV.UK paragraph styling
  • Transitions removed from most elements
  • loadScriptsOnAccept option for cookie banner removed in favour of callback events
  • Removed the accent-color property for form elements

Fixed

  • Assets path fixed for GOV.UK prototype kit
  • Colour fixed for plain card supertitles in accented style
  • Header navigation uses flexbox for layout of tabs and top navigation stacks on mobile
  • Explicitly declare font colour for tinted and light accent backgrounds
  • Accepting or declining individual cookie policies now works
  • Removed extra space from nested links

0.1.24-prerelease - 2023-11-06

Added

  • Elements can be hidden on certain devices with tna-!--hide-on-[large|medium|small|tiny]
  • Allow links to have no visited state with tna-link--no-visited-state
  • Card supertitles can be made "plain" with no contrasting colour
  • Roboto Mono Bold added
  • Ability to either use bundled fonts or fonts hosted by Google (default is Google fonts)
  • Featured records component

Changed

  • Tweaked dark theme colours
  • tna-visually-hidden could instead use the class tna-!--visually-hidden (will deprecate one of these in the future)
  • Changed Node version from lts/hydrogen to lts/iron
  • Update the spacing and spacing-mobile functions in spacing to space and space-mobile
  • Mixin colour.invert changed to colour.contrast
  • Background colour classes changed to BEM (tna-background--accent -> tna-background-accent)
  • Open Sans body weight changed from 500 to 400
  • Text balance on headings removed but left on headings with links
  • background-tint colour changed for better accessibility/contrast
  • Change pagination aria-label in line with GOV.UK Frontend 5.0.0

Removed

  • The @import for Supria Sans Condensed (supria-sans-condensed) from TypeKit has been removed - each service needs to import their own copy of the fonts

Fixed

  • Cookie banner URL is now correctly used
  • Spacing above picture elements fixed
  • Image widths fixed (not stretched)

0.1.23-prerelease - 2023-10-25

Fixed

  • Header allows accent colour to be used with tna-header--accent
  • More consistent spacing between elements

0.1.22-prerelease - 2023-10-24

Added

  • tna-aside now has a --tight modifier with less padding
  • Chips can be made plain with tna-chip--plain
  • Visual regression tests can now be run in the Storybook UI
  • Allow right/left margins to be added to columns
  • Hero components can have different image sources with <source> elements

Changed

  • Breadcrumbs are no longer contained within a container/column layout
  • Header styles have been simplified
  • External link icons changed from CSS to icon font in header and footer
  • External links in footer have titles suffixed with "opens in new tab"
  • Links in footer and text in buttons have balanced wrapping applied
  • Header and header group class modifiers have been moved to separate blocks (tna-heading tna-heading--xl -> tna-heading-xl)
  • space-below has been replaced with space-above and all paddings in between page elements reassessed
  • Tweak spacing on hero component and <hr> elements
  • Added tna-button-group around newsletter subscription button in the footer
  • Updated Storybook to 7.5.1

Removed

  • The black accent is no longer applied by default
  • Removed margin and padding overrides for device-specific sizes (e.g. tna-!--margin-top-xl-small)

Fixed

  • Font paths fixed for prototype kit, stylesheets and JavaScript loading
  • Better alignment of site name next to logo in header
  • Fixed right/left padding of logo and hamburger on small devices
  • Change Supria Sans weight from 400 to 500 (medium, as provided by TypeKit)
  • Card image type is now variable when using sources

0.1.21-prerelease - 2023-10-12

Added

  • Cards can now have meta text/icons under the title
  • <dl> elements are now styled using a tna-dl class
  • Allow use of custom variables when loading SCSS as described in src/nationalarchives/stories/development/using.mdx
  • Basic pagination element added
  • <small> elements are now styled
  • Some basic print styles added for tabs, breadcrumbs and cookie banners
  • Grids can be centre aligned with tna-container--centred
  • Skip links will focus on the targeted element with JavaScript once the skip link is clicked

Changed

  • Focus on the confirmation message of the cookie banner once accepted or rejected
  • hideCookieBannerKey property on cookie banner changed to cookiesPreferencesSetKey
  • When using the prototype kit, <p> tags have some alterations that remove the default GOV.UK styling
  • When using the system theme, JavaScript is no longer required to write specific theme classes to the <html> element - all of this is done in CSS
  • Standalone CSS such as components/button.css no longer includes Font Awesome
  • <nav> elements in the footer now have a role="navigation" attribute
  • The default cookie policies are now essential, usage and settings
  • The SCSS mixin colour-outline now accepts optional width and style properties
  • In coloured blocks, the custom CSS property --background now gets explicitly replaced with --accent-background, --contrast-background or --accent-background-light
  • typography.$base-font-size-px is now typography.$relative-1rem-px
  • xl and l headings are Supria Sans and m and s are Open Sans
  • Card heading size defaults to s
  • Markup and styles altered for hero component
  • Updated app icons and favicon
  • Changed gutters on small devices to the same as medium and large, reduced tiny device gutters to 1rem
  • Body text is reduced from 18px to 17px on mobile devices
  • Reduced the bottom margin on paragraphs from 1.5rem to 1rem

Removed

  • Explicit overflow properties applied to .tna-template and .tna-template__body have been removed

Fixed

  • Updated the prototype kit templates
  • Tabs will not try to show a specific one on startup unless the target matches the ID of one of the tabs
  • Closing </nav> tag added on to index-grid
  • /nationalarchives/_prototype-kit.scss is now the entrypoint for the GOV.UK prototype kit SASS which fixes the asset location
  • The cookie banner confirmation message is no longer outlined when highlighted
  • The import routes of the layouts for use in the prototype kit now work
  • Cookie banner header classes added
  • Visited links within the dark theme are purple again

0.1.20-prerelease - 2023-09-14

Fixed

  • Updated card fixtures in line with changes from 0.1.19-prerelease

0.1.19-prerelease - 2023-09-14

Added

  • Envelope icon added to newsletter subscription
  • Card actions can have icons or brand icons
  • Gallery component
  • Button elements can be <a> or <button> with buttonElement: true
  • Small button option
  • Tabs also respond to the up/down keys on keyboard navigation as well as left/right
  • Allow other image sources in a card image using a <picture> element
  • Cookie banner and cookie handling
  • Individual JavaScript and CSS files are exported for each component

Changed

  • Updated social icons in footer to use Font Awesome icons
  • Consolidated markup for "opens in new tab" in external footer links#
  • Columns have margin removed by default
  • Flatten the template parameters for cards (e.g. image.src -> imageSrc)
  • Open Sans and Roboto Mono are included in the package
  • Gutters on mobile devices have changed from 1rem to 1.5rem

Removed

  • Deleted social SVG icons from assets

Fixed

  • href on cards is now optional
  • Styling for focus outlines of links within headers
  • Remove double underline from tab item hover
  • Fix colour of visited tabs when JavaScript is not available
  • Size of <button class="tna-button"> now matches <a class="tna-button">
  • Button colours for inverted and accented backgrounds

0.1.18-prerelease - 2023-09-04

Fixed

  • Generic template import fixed

0.1.17-prerelease - 2023-09-04

Added

  • Accent colour can be added to the tna-template element (e.g. tna-template--yellow-accent)
  • Accent buttons tna-button--accent
  • Button groups - a wrapper for multiple buttons (tna-button-group)
  • Horizontal, contrasting and accent cards (tna-card--horizontal, tna-card--contrast, tna-card--accent)
  • Index grid items can now have tags
  • tna-section and tna-aside classes added for areas of content
  • tna-tag added as supertitles in <hgroup> and tags in cards
  • tna-scene-setter class added for welcome content
  • Buttons can have icons or brand icons
  • Override classes for specific devices available e.g. tna-!--no-margin-bottom-small and tna-!--padding-top-s-tiny

Changed

  • New footer component implimented
  • @include colour.invert; will also set the colour to font-base
  • Removed explicit margin from hero component
  • Index grid images are displayed in their original aspect ratio
  • tna-hgroup titles should now be wrapped in an element with a tna-hgroup__title class
  • Colours tweaked, such as page backgrounds
  • Fallback font for supria-sans-condensed is Arial Narrow
  • Update dependencies including Storybook to 7.4
  • Override classes changed format from tna-!__padding-top--s to tna-!--padding-top-s
  • tna-tag changed to tna-chip
  • Altered line heights of headings for better readability
  • Utilised gap property for tna-button-group and tna-filters (thanks @JohnHeeryTNA)
  • Updated dependencies

Removed

  • Secondary buttons tna-button--secondary
  • Featured cards tna-card--featured
  • Pattern example

Fixed

  • Message icon no longer collapses on smaller screens
  • Filters visited state colour
  • Index grid heading was not being output correctly

0.1.16-prerelease - 2023-08-29

Added

  • New skip link component
  • Breadcrumbs have non-collapsable option
  • colour.colour-border() has support for extra optional parameters - $width, $style and $direction
  • Brand colours can be retrieved with the helper colour.brand-colour()

Changed

  • Restructured brand colour variables
  • package-lock.json and LICENCE added to the npm package
  • Additional <div> added to breadcrumbs for layout purposes

Removed

  • Removed extra gutter on mobile grid
  • Card heading sizes can no longer be changed

0.1.15-prerelease - 2023-08-18

Added

  • Override classes available e.g. tna-!--no-margin-bottom and tna-!__padding-top--s
  • Accent colour can be changed with :root { --accent: #bada55; }

Changed

  • Improvements to high contrast themes
  • Full-height layouts need a #main-content[role="main"] rather than just a #main[role="main"]
  • Added role="button" to all TNA buttons
  • Allow collapsed breadcrumbs to be expanded on mobile devices
  • Body font (Open Sans) weight changed from 400 to 500
  • Index grid changed to <ul>
  • Index grid header requires an object of title, level and optionally, size (default "l")
  • Card images are now wrapped in <a> elements
  • Images in normal card and mobile feature cards are fixed to a 3:2 ratio

Fixed

  • Featured cards fixed for mobile layouts

0.1.14-prerelease - 2023-08-11

Changed

  • Simplified SCSS for inverted colours and introduced contrasting option

Fixed

  • Default colour scheme works without having to define a theme class on tna-template
  • Fixed top navigation layout in header when on mobile with no JavaScript enabled

0.1.13-prerelease - 2023-08-11

Added

  • Automated accessibility testing for all stories
  • Support for colour schemes
  • Initial release of index-grid and message components
  • Footer link to GOV.UK added (https://www.gov.uk/)
  • Full-height layouts for pages with a .tna-header, .tna-footer and #main[role="main"]

Changed

  • Breadcrumbs collapse to first and last item on mobile (as per GOV.UK breadcrumbs)
  • Increased padding on top and bottom of footer
  • Exit link and top navigation font-size decreased to 16px
  • Better outline on hover of TNA logo in the header
  • Phase banner title is first-letter Capitalised rather than all CAPITALISED
  • Altered weight of Roboto Mono (500 -> 400)
  • Altered weight of Supria sans condensed (600 -> 400)
  • Reduced bottom margin of all .tna-heading elements
  • Increased contrast between "normal" and "light" fonts
  • Updates to _generic layout template

Removed

  • Removed package:test npm script

Fixed

  • Breadcrumb visited link colour
  • Header logo text visited link colour
  • aria-label added to breadcrumb nav for accessibility compliance

0.1.12-prerelease - 2023-08-08

Changed

  • Updated dependencies

Fixed

  • Basic accent colour fixed

0.1.11-prerelease - 2023-08-08

Added

  • Footer component moved out of work in progress ready to test in beta
  • Hero component has a small amount of support for users who prefer more contrast

Changed

  • Removed vendor-specific CSS values for IE10 from grid classes (display: -ms-flexbox;)
  • Hero component background images now require a width and height

Fixed

  • The fallback font family for supria-sans-condensed was changed to sans-serif rather than monospace

0.1.10-prerelease - 2023-07-14

Added

  • JavaScript adds helper classes to the document

0.1.9-prerelease - 2023-07-12

Fixed

  • Hero component styling inline with ETNA