Skip to content

Releases: nationalarchives/tna-frontend

v0.2.10

30 Aug 11:51
9168d75
Compare
Choose a tag to compare
v0.2.10 Pre-release
Pre-release

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

v0.2.9

21 Aug 16:56
d4561d7
Compare
Choose a tag to compare
v0.2.9 Pre-release
Pre-release

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

v0.2.8

16 Aug 14:34
4489c85
Compare
Choose a tag to compare
v0.2.8 Pre-release
Pre-release

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

v0.2.7

12 Aug 11:55
0e7fd37
Compare
Choose a tag to compare
v0.2.7 Pre-release
Pre-release

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

v0.2.6

02 Aug 14:55
cbb4f43
Compare
Choose a tag to compare
v0.2.6 Pre-release
Pre-release

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

v0.2.5

30 Jul 15:23
e7a6900
Compare
Choose a tag to compare
v0.2.5 Pre-release
Pre-release

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

v0.2.4

30 Jul 14:57
274d506
Compare
Choose a tag to compare
v0.2.4 Pre-release
Pre-release

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

v0.2.3

30 Jul 09:42
293668f
Compare
Choose a tag to compare
v0.2.3 Pre-release
Pre-release

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

v0.2.2

24 Jul 12:07
07790fc
Compare
Choose a tag to compare
v0.2.2 Pre-release
Pre-release

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

v0.2.1

19 Jul 11:06
04eab1a
Compare
Choose a tag to compare
v0.2.1 Pre-release
Pre-release

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