Skip to content

Releases: nationalarchives/tna-frontend

v0.8.0

15 Jan 17:58
18fc6e3
Compare
Choose a tag to compare
v0.8.0 Pre-release
Pre-release

Added

  • Secondary navigation component

Fixed

  • Fixed the alignment of icons in description lists when in high contrast mode
  • Fixed hidden attributes with value of true (hidden="true") to a blank value (hidden="")

v0.7.2

15 Jan 17:11
8df364a
Compare
Choose a tag to compare
v0.7.2 Pre-release
Pre-release

Changed

  • Markers for ordered and unordered lists have changed from the accent colour to the light font colour
  • tna.pref.prefers-contrast reports normal rather than a blank string in the analytics library when the user has no specific contrast preference
  • Improvements to high contrast support for hero components, cards components and lists

Removed

  • Changed all experimental hidden="until-found" attributes to hidden

Fixed

  • Add missing type attribute to the expand button in the breadcrumbs component

v0.7.1

14 Jan 10:54
69fba52
Compare
Choose a tag to compare
v0.7.1 Pre-release
Pre-release

Fixed

  • Fixed small size difference between show/hide password button width in text input
  • Added missing aria-controls to password show/hide button in text input
  • Captured missing page meta tags in analytics

v0.7.0

13 Jan 20:22
201f48d
Compare
Choose a tag to compare
v0.7.0 Pre-release
Pre-release

Added

  • Capture user preferences (such as dark mode, reduced motion etc.) in GA4
  • Text inputs can be turned into password inputs with password: true
  • Conditional tracking of events with onCondition

Changed

  • Ensure accordion aria-label attributes are trimmed

Deprecated

  • Deprecated the @nationalarchives/frontend-cookie-banner package

Fixed

  • Trimmed innerText when tracking events

v0.6.0

08 Jan 18:06
739b4be
Compare
Choose a tag to compare
v0.6.0 Pre-release
Pre-release

Added

  • More tracking added to galleries and sidebars

Changed

  • Update Font Awesome from 6.4.2 to 6.7.2

Fixed

  • Set aria-hidden="true" and focusable="false" on presentational SVGs
  • Removed quote marks from blockquotes that contain lists

v0.5.0

03 Jan 13:48
bd92f09
Compare
Choose a tag to compare
v0.5.0 Pre-release
Pre-release

Added

Changed

  • Optional data-tnacookiesdomain and data-tnacookiespath attributes on the <html> element are now data-tna-cookies-domain and data-tna-cookies-path
  • The data-preferenceskey and data-policieskey attributes on the cookies component are now data-preferences-key and data-policies-key
  • The data-disableautofocus attribute on the error summary component is now data-disable-autofocus
  • The data-informationlabelopen and data-informationlabelclose attributes on the picture component are now data-information-label-open and data-information-label-close
  • $disable-image-loader-animations (default: false) in variables/features has changed to $image-loader-animations (default: true)

Fixed

  • Style for current selected gallery item fixed

v0.4.0

10 Dec 18:12
5bd7b7a
Compare
Choose a tag to compare
v0.4.0 Pre-release
Pre-release

Added

  • Optional data-tnacookiesdomain and data-tnacookiespath attributes on the <html> element can be used to define the domain and path for cookies
  • Analytics added for breadcrumbs and gallery components
  • Allowed the document scope of an EventTracker instance to be changed
  • Gallery components are unbounded by default but can have a background with bounded: true

Changed

  • Shifted and split hero components no longer assume a contrasted background by default
  • marketing has been added to the default list of cookie policies
  • Added a tna-large-paragraph--bold to change the weight and colour tna-large-paragraph

Deprecated

  • Removed the records list component

Fixed

  • Remove bottom margin of shifted hero components on smaller devices
  • Fixed getXPathTo on analytics helpers if the element has no parent node
  • Changed the incorrect aria-selected attribute on gallery items to aria-current

v0.3.0

05 Dec 11:09
3d11a2c
Compare
Choose a tag to compare
v0.3.0 Pre-release
Pre-release

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

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

v0.2.18

05 Nov 10:37
f08caf6
Compare
Choose a tag to compare
v0.2.18 Pre-release
Pre-release

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

v0.2.17

23 Oct 15:56
4ed89de
Compare
Choose a tag to compare
v0.2.17 Pre-release
Pre-release

Changed

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