Skip to content

Releases: nationalarchives/tna-frontend

v0.1.36

06 Feb 14:14
e309b31
Compare
Choose a tag to compare
v0.1.36 Pre-release
Pre-release

Changed

  • 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 as tna-cookie-banner--contrast
  • The card style of boxed has been changed to contrast 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 from en-GB to en
  • 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 (thanks @Terry-Price)
  • Reduce padding on blockquotes on mobile

Removed

  • Removed option for tna-search-field--no-border - borders are dictated by the background colours and page theme

Fixed

  • Picture elements in high contrast mode have improved borders with no gaps

v0.1.35

16 Jan 15:37
6430796
Compare
Choose a tag to compare
v0.1.35 Pre-release
Pre-release

Added

  • More icon sizes added

Changed

  • Images on horizontal cards are now at least a 3:2 aspect ratio
  • Icon assets have been renamed from apple-touch-icon-xxx.png to icon-xxx.png

v0.1.34

10 Jan 09:40
46594ce
Compare
Choose a tag to compare
v0.1.34 Pre-release
Pre-release

Added

  • Base template can now accept htmlAttributes
  • Compound filters can be used to show currently selected search filters

Changed

  • Changed attributes to formGroupAttributes and classes to formClasses on checkboxes and radios - attributes and classes now get applied to each checkbox and radio element

Fixed

  • Fixed href property of pagination previous and next links

v0.1.33

29 Dec 12:06
70f250f
Compare
Choose a tag to compare
v0.1.33 Pre-release
Pre-release

Added

  • Added italic version of Open Sans

Changed

  • The default cookie banner colour is dark on light but can be changed with a style attribute or classes such as tna-cookie-banner--contrast
  • The card style of boxed has been changed to contrast in line with other components
  • Changed tna-select--plain to tna-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

v0.1.32

18 Dec 10:55
8004ae4
Compare
Choose a tag to compare
v0.1.32 Pre-release
Pre-release

Added

  • Mixins for "always light" and "always dark"

Changed

  • 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

v0.1.31

14 Dec 14:18
2188fe4
Compare
Choose a tag to compare
v0.1.31 Pre-release
Pre-release

Added

  • 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

Changed

  • 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 to data-policieskey

Removed

  • Picture elements no longer have translation and transcript options (see "Added" above for alternative)

v0.1.30

07 Dec 11:14
9eb8dbc
Compare
Choose a tag to compare
v0.1.30 Pre-release
Pre-release

Added

  • <dl> elements can now be stacked with <dl class="tna-dl tna-dl--stacked">

Changed

  • Cookies class parameter extraPolicies moved to key inside the options object parameter

Fixed

  • 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

v0.1.29-prerelease

01 Dec 11:59
4e82437
Compare
Choose a tag to compare
v0.1.29-prerelease Pre-release
Pre-release

Changed

  • Light font colour changed for better colour contrast on light accented backgrounds

Removed

  • High contrast themes don't have outlines when hovering over links

Fixed

  • Date search predefined value fixture amended
  • Light icons can be used on light accented backgrounds

v0.1.28-prerelease

30 Nov 13:56
7017b7a
Compare
Choose a tag to compare
v0.1.28-prerelease Pre-release
Pre-release

Added

  • Buttons can now have buttonType which sets the type attribute for <button> elements

Changed

  • Changed style of filters element to match with accent colour

Removed

  • Removed title attribute from tabs and aria-label from HTML

Fixed

  • Fixed HTML validation errors

v0.1.27-prerelease

29 Nov 18:38
ea7f873
Compare
Choose a tag to compare
v0.1.27-prerelease Pre-release
Pre-release

Fixed

  • Added the correct aria-label in index grid components