Skip to content

Releases: nationalarchives/tna-frontend

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

v0.2.16

16 Oct 14:09
44dfa62
Compare
Choose a tag to compare
v0.2.16 Pre-release
Pre-release

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

v0.2.15

07 Oct 11:23
79600d9
Compare
Choose a tag to compare
v0.2.15 Pre-release
Pre-release

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

v0.2.14

18 Sep 15:40
c71ae0d
Compare
Choose a tag to compare
v0.2.14 Pre-release
Pre-release

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

v0.2.13

13 Sep 13:59
96a0d0a
Compare
Choose a tag to compare
v0.2.13 Pre-release
Pre-release

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

v0.2.12

05 Sep 10:59
7daeb8f
Compare
Choose a tag to compare
v0.2.12 Pre-release
Pre-release

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

v0.2.11

30 Aug 14:10
55491bb
Compare
Choose a tag to compare
v0.2.11 Pre-release
Pre-release

Removed

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

Fixed

  • Increased z-index of active summary buttons on accordions