Skip to content

Releases: nationalarchives/tna-frontend

v0.11.0

28 Jan 16:49
aa2753d
Compare
Choose a tag to compare
v0.11.0 Pre-release
Pre-release

Changed

  • Cookie library settings can now be set at a document level in the <html> element rather than at a cookie banner level - in addition to data-tna-cookies-domain and data-tna-cookies-path parameters, there is now tna-cookies-policies-key, tna-cookies-default-age and tna-cookies-insecure
  • Removed right and left margin from plain picture components

Removed

  • Removed policies, policiesKey, cookiesDomain, cookiesPath and allowInsecure options from the cookie banner component

v0.10.0

27 Jan 18:31
a37d62e
Compare
Choose a tag to compare
v0.10.0 Pre-release
Pre-release

Removed

  • The cookie library and the cookie banner component can no longer have custom cookie policies; only the four standard (usage, settings, marketing and essential)

Fixed

  • Better support for cookie banners with edge cases when partial or malformed cookie policies already exist
  • Changed incorrect aria-title attribute on password input fields to aria-label

v0.9.0

27 Jan 17:07
dc2f3a4
Compare
Choose a tag to compare
v0.9.0 Pre-release
Pre-release

Added

  • Page not found error page template added to prototype kit

Changed

Fixed

  • If cookie policies are invalid or missing when the cookie class is initiated, the cookie banner is shown regardless of the existance of a cookie_preferences_set cookie

v0.8.1

21 Jan 12:31
320322c
Compare
Choose a tag to compare
v0.8.1 Pre-release
Pre-release

Fixed

  • Added missing type attribute on accordion buttons
  • Fixed issue with invalid HTML in accordion JavaScript - headings are not permitted inside <button> elements

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