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 support for the Dynamic Type setting in iOS, allowing users to change the default font size
- 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
- Fixed the hover and focus outline colour of the logo in the global header component
- Added
width
andheight
attributes to inline SVGs - Top border on cards with no images fixed for high contrast mode
0.2.18 - 2024-11-05
- Added
aria-label
attributes to all elements with customtitle
attributes - Added a title for items in pagination components ("Page x")
- The LTS version of NodeJS used has been upgraded from
iron
(20.x
) tojod
(22.x
)
- Pagination items no longer have a
label
attribute - this is instead defined asPage x
wherex
is thenumber
attribute - Removed the warnings about importing Google Fonts
- 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
- 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 the size of small images in horizontal cards
- Updated deprecated
color.red()
,color.green()
andcolor.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
- Buttons can now have an
html
property that allows HTML to be used in place of thetext
property
- Change border widths on global header items from
0.5px
to1px
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
- Items in a files list can be made entirely clickable using the
fullAreaClick
property
- 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 the separate global header package
- Fixed colour of hovered buttons using the
<button>
element - Improved cards CSS for IE11
0.2.13 - 2024-09-13
- Added the option for a darker
<hr>
element withtna-hr-dark
- Tables needing horizontal scrolling can be focused on and receive a "(scroll to see more)" note added to their caption
- Added outlines to hovered and focused cards with the full click option enabled
touched
,tabbed
andclicked
template modifiers added as part ofinitAll()
- Print modifiers moved into
initAll()
- 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
- 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
- Items in a file list now require an ID so that an
aria-describedby
attribute can be used to describe the file details
- 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
- 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 thewindow
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
$import-google-fonts
option - Removed the
@import
rule for Google Fonts
- Increased
z-index
of active summary buttons on accordions
0.2.10 - 2024-08-30
$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 forall.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
)
- 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
- Changed conflicting GA4 window object instance in GA4 class from
TNAFrontendAnalytics
toTNAFrontendAnalyticsGA4
- Adjusted margin bottom of narrow, shifted hero components
0.2.9 - 2024-08-21
- 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
- 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
- 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 container
--no-padding-all
classes and replaced with--no-padding
classes for both containers and columns
- Removed max height for gallery components
0.2.7 - 2024-08-12
- Content in the cookie banner component is now customisable
- Change skip link colours when hidden to avoid accessibility failures being raised
- Fixed incorrect use of
navigationId
andtopNavigationId
in global header component - Fixed padding of sticky sidebars
- Fixed header navigation toggle analytics
0.2.6 - 2024-08-02
- Spaced option for description lists with
.tna-dl--spaced
- 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
- Pressing the up and down keyboard arrows no longer changes images within a gallery
- 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
- 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
- New style added for plain picture components
- 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) tonull
(session cookie)
- Added missing space above gallery component
- Updated gallery analytics
0.2.3 - 2024-07-30
- Analytics added for accordion, detail and gallery components
- Large paragraphs (
.tna-large-paragraph
) that follow headings and heading groups have less top margin - Switch
.tna-gallery--fullscreen
class for.tna-gallery:fullscreen
- 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
- Allowed galleries to not show the first image by default using
showGrid
- 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
- 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
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
- 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 theirlist-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
- Cards can no longer have plain supertitles
- Fixed spacing in nested lists
- Set icon size for file list component for better viewing without CSS
0.2.0 - 2024-07-15
- 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 mainname
- 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 tocolour.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 intoform-error-border
andform-error-text
- Moved the grid component to utilities
- Removed
colour.plain
SCSS mixin
- Removed search filters component
- Removed sensitive image component
- Removed
width: 100%;
reset of<video>
and<canvas>
elements
- Added missing space above files list
- Fixed alignment of warning text when a short body is used
- Incorrect
aria-labeledby
attribute changed toaria-labelledby
in gallery items - Add better labels for buttons in gallery component
0.1.65 - 2024-07-11
- 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
- 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 totitle
- Removed all print styles from
all.css
- Fixed
aria-controls
property of accordion buttons - All component attributes can now have blank values
0.1.64 - 2024-06-24
- Fixed the optimised
.tna-header--no-link-arrow
class (again)
0.1.63 - 2024-06-24
- Fixed the optimised
.tna-header--no-link-arrow
class
0.1.62 - 2024-06-24
- The default
headingSize
for cards has changed froms
tom
- The font size of the scene setter has been reduced
- The small scene setter style has been removed
- Removed extra spaces from template classes and attributes
- Fix horizontal card inner padding
0.1.61 - 2024-06-18
- Fixed some colours combinations
0.1.60 - 2024-06-18
- New sidebar component
- Don't reload the window when
disableTracking()
is called in the analytics library - Added warning when using
typography.relative-font-size()
to move totypography.font-size()
(relative-font-size
will be removed in a future release)
- 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
- 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
- The transcript button on picture components no longer gets a
tna-picture__toggle-transcript--opened
class when opened
- Fix the error when calling
disableTracking()
within the analytics library
0.1.58 - 2024-06-05
- Hero component can now have actions
- Hero component has a new
narrow
option for shorter headers
- 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 generictna-background-accent
classes for card, cookie banner, header, hero and phase banner components
- Removed external icon from header exit link
- 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
- Index grids can now have supertitles,
hrefClasses
andhrefAttributes
- Quick filters component styling has changed and has a new
fill
option - Picture components can now have alternative sources
- Detail summaries no longer stretch the full width of the container
- Index grid
headingHref
changed tohref
- 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
- Removed unused
imageType
attribute from hero components
- 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
application.css
file no longer included when using the prototype kit
0.1.55 - 2024-05-28
- New accordion and details components added
- Card images can be loaded lazily with
lazyImage
- Standard
application.css
file will be included when using the prototype kit
- 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
assetPath
now requires a trailing slash
- Fixed issues with some templates, particularly around the theme selection
0.1.53 - 2024-05-13
- 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
- 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
- Date search component text updated to use the defined detail font
0.1.52 - 2024-04-04
- Better support for colour themes and high contrast options
- Removed
tna-template--light-theme
option -tna-template
is light by default - Removed
accent-background
anddark
mixins from colour tools
- Fix incorrect
tna-template--black-accent
class - Removed all redundant high contrast classes
0.1.51 - 2024-04-04
- "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
andtna-accent-green
- Hero components can now have a "shifted" style option and can have contrasting, tinted and accent backgrounds
- Improved markup of warning component
--page-background
is now--background
- 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
- 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
ortext
properties - these have been replaced with acontent
property
- 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
- 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
- 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 collapsed padding on details dropdown of hero component
- Added heights to Font Awesome SVGs
0.1.49 - 2024-03-26
- 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 grid dimensions (max width, gutters etc.) from
rem
units topx
- Changed all spacing (margin, padding and gap) to use
spacing.space()
tool for relative sizes - Tweaked some of the dark and contrasting colours
- Removed strapline option for global header
- Removed all redundant
role
attributes in line with GOV.UK Frontend v5.3.0
- 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
- Navigation dropdowns in headers can be closed using the
Escape
key
- Changed the
aria-current
attribute of the current header menu item fromtrue
topage
- 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
- 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
- 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 atna-main
class- Index grid headings can be hidden by setting
headingLevel
to0
- Template fixtures are now included
- Default maximum container width changed from
75.25rem
(1204px
) to80rem
(1280px
) - GA4 analytics implementation updated
- Updated
aria-label
attributes on navigation elements
- Removed
tnaFrontendCssPath
andtnaFrontendJsPath
variables from_generic.njk
template
- Card actions can no longer have icons
- Removed explicit
role="navigation"
on pagination component androle="main"
on<main>
elements - Removed defaults from
stylesheets
andbodyEnd
of_generic.njk
template
- Card action classes and attributes fixed
0.1.43 - 2024-03-11
- Global active style added
- 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 style of icon-only buttons in a small button group
0.1.42 - 2024-03-01
- Error summary component
- Initial release of analytics library
- Initial idea for search filters
- Allow structured data in breadcrumbs with
structuredData
filters
are nowquick-filters
(and the Nunjucks has changed fromtnaFilters
totnaQuickFilters
)- Border widths around inputs have been increased
- Removed
tna-ul tna-ul--plain
classes from compound filters
- Removed the automatic
tna-form__
prefix from form field IDs
0.1.41 - 2024-02-27
- Footer link URLs
0.1.40 - 2024-02-27
- 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 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
- Automated AXE checks now include WCAG 2.2
- Lazy loading for images in picture component
- Changed spacing between navigation items in header
tna-blockquote__author
changed totna-blockquote__citation
- Added default CSS export in
package.json
- Set global header background to pure black (
#000
) on dark themes
- Ability to tint hero images
- 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
- Updated dependencies
0.1.37 - 2024-02-13
- New global header component
- 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
- 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
- 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 astna-cookie-banner--contrast
- The card style of
boxed
has been changed tocontrast
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
fromen-GB
toen
- 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 option for
tna-search-field--no-border
- borders are dictated by the background colours and page theme
- Picture elements in high contrast mode have improved borders with no gaps
0.1.35 - 2024-01-16
- More icon sizes added
- Images on horizontal cards are now at least a 3:2 aspect ratio
- Icon assets have been renamed from
apple-touch-icon-xxx.png
toicon-xxx.png
0.1.34 - 2024-01-10
- Base template can now accept
htmlAttributes
- Compound filters can be used to show currently selected search filters
- Changed
attributes
toformGroupAttributes
andclasses
toformClasses
on checkboxes and radios -attributes
andclasses
now get applied to each checkbox and radio element
- Fixed
href
property of paginationprevious
andnext
links
0.1.33 - 2023-12-29
- Added italic version of Open Sans
- The default cookie banner colour is dark on light but can be changed with a
style
attribute or classes such astna-cookie-banner--contrast
- The card style of
boxed
has been changed tocontrast
in line with other components - Changed
tna-select--plain
totna-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
- Mixins for "always light" and "always dark"
- 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
- 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
- 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
todata-policieskey
- Picture elements no longer have
translation
andtranscript
options (see "Added" above for alternative)
0.1.30 - 2023-12-07
<dl>
elements can now be stacked with<dl class="tna-dl tna-dl--stacked">
- Cookies class parameter
extraPolicies
moved to key inside the options object parameter
- 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
- Light font colour changed for better colour contrast on light accented backgrounds
- High contrast themes don't have outlines when hovering over links
- Date search predefined value fixture amended
- Light icons can be used on light accented backgrounds
0.1.28-prerelease - 2023-11-30
- Buttons can now have
buttonType
which sets thetype
attribute for<button>
elements
- Changed style of filters element to match with accent colour
- Removed
title
attribute from tabs andaria-label
from HTML
- Fixed HTML validation errors
0.1.27-prerelease - 2023-11-29
- Added the correct
aria-label
in index grid components
0.1.26-prerelease - 2023-11-29
- 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
- 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
- Removed generic
accent
CSS variable - The black theme accent has been removed
- 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
- Grid columns can be aligned along the cross axis with classes
tna-column--align-top
,tna-column--align-bottom
andtna-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
- 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
andsettings
- other custom policies can be added - Focus outline on dark themes has changed from blue to orange to avoid colour conflict with links
- 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
- 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
- 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
- Tweaked dark theme colours
tna-visually-hidden
could instead use the classtna-!--visually-hidden
(will deprecate one of these in the future)- Changed Node version from
lts/hydrogen
tolts/iron
- Update the
spacing
andspacing-mobile
functions inspacing
tospace
andspace-mobile
- Mixin
colour.invert
changed tocolour.contrast
- Background colour classes changed to BEM (
tna-background--accent
->tna-background-accent
) - Open Sans body weight changed from
500
to400
- 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 Frontend5.0.0
- 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
- Cookie banner URL is now correctly used
- Spacing above picture elements fixed
- Image widths fixed (not stretched)
0.1.23-prerelease - 2023-10-25
- Header allows accent colour to be used with
tna-header--accent
- More consistent spacing between elements
0.1.22-prerelease - 2023-10-24
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
- 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 withspace-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
- 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
)
- 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
to500
(medium, as provided by TypeKit) - Card image type is now variable when using sources
0.1.21-prerelease - 2023-10-12
- Cards can now have meta text/icons under the title
<dl>
elements are now styled using atna-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
- Focus on the confirmation message of the cookie banner once accepted or rejected
hideCookieBannerKey
property on cookie banner changed tocookiesPreferencesSetKey
- 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 arole="navigation"
attribute- The default cookie policies are now
essential
,usage
andsettings
- 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 nowtypography.$relative-1rem-px
xl
andl
headings are Supria Sans andm
ands
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
to1rem
- Explicit overflow properties applied to
.tna-template
and.tna-template__body
have been removed
- 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 toindex-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
- Updated card fixtures in line with changes from
0.1.19-prerelease
0.1.19-prerelease - 2023-09-14
- Envelope icon added to newsletter subscription
- Card actions can have icons or brand icons
- Gallery component
- Button elements can be
<a>
or<button>
withbuttonElement: 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
- 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
to1.5rem
- Deleted social SVG icons from assets
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
- Generic template import fixed
0.1.17-prerelease - 2023-09-04
- 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
andtna-aside
classes added for areas of contenttna-tag
added as supertitles in<hgroup>
and tags in cardstna-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
andtna-!--padding-top-s-tiny
- New footer component implimented
@include colour.invert;
will also set the colour tofont-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 atna-hgroup__title
class- Colours tweaked, such as page backgrounds
- Fallback font for
supria-sans-condensed
isArial Narrow
- Update dependencies including Storybook to
7.4
- Override classes changed format from
tna-!__padding-top--s
totna-!--padding-top-s
tna-tag
changed totna-chip
- Altered line heights of headings for better readability
- Utilised
gap
property fortna-button-group
andtna-filters
(thanks @JohnHeeryTNA) - Updated dependencies
- Secondary buttons
tna-button--secondary
- Featured cards
tna-card--featured
- Pattern example
- 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
- 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()
- Restructured brand colour variables
package-lock.json
andLICENCE
added to the npm package- Additional
<div>
added to breadcrumbs for layout purposes
- Removed extra gutter on mobile grid
- Card heading sizes can no longer be changed
0.1.15-prerelease - 2023-08-18
- Override classes available e.g.
tna-!--no-margin-bottom
andtna-!__padding-top--s
- Accent colour can be changed with
:root { --accent: #bada55; }
- 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
to500
- 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
- Featured cards fixed for mobile layouts
0.1.14-prerelease - 2023-08-11
- Simplified SCSS for inverted colours and introduced contrasting option
- 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
- 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"]
- 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
package:test
npm script
- 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
- Updated dependencies
- Basic accent colour fixed
0.1.11-prerelease - 2023-08-08
- 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
- Removed vendor-specific CSS values for IE10 from grid classes (
display: -ms-flexbox;
) - Hero component background images now require a width and height
- The fallback font family for
supria-sans-condensed
was changed tosans-serif
rather thanmonospace
0.1.10-prerelease - 2023-07-14
- JavaScript adds helper classes to the document
0.1.9-prerelease - 2023-07-12
- Hero component styling inline with ETNA