Skip to content

Releases: nationalarchives/tna-frontend

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

v0.2.0

15 Jul 14:04
5f94a7b
Compare
Choose a tag to compare
v0.2.0 Pre-release
Pre-release

Changed

  • Increased maximum depth of contents sidebar to three levels
  • Removed the redundant role attribute from <fieldset> of the date input component
  • Allow each item in a checkboxes component to have a name attribute that will override the main name
  • Renamed "files" component to "files list" (files -> files-list, tnaFiles() -> tnaFilesList())
  • Renamed "featured records" component to "records list" (featured-records -> records-list, tnaFeaturedRecords() -> tnaRecordsList())
  • SCSS mixin colour.light changed to colour.always-light
  • Index grid items within contrast blocks are now accented
  • Colour variables --button-accent-text and --button-accent-background have changed to --button-accented-text and --button-accented-background
  • Colour variable form-error split into form-error-border and form-error-text
  • Moved the grid component to utilities

Deprecated

  • Removed colour.plain SCSS mixin

Removed

  • Removed search filters component
  • Removed sensitive image component
  • Removed width: 100%; reset of <video> and <canvas> elements

Fixed

  • Added missing space above files list
  • Fixed alignment of warning text when a short body is used
  • Incorrect aria-labeledby attribute changed to aria-labelledby in gallery items
  • Add better labels for buttons in gallery component

v0.1.65

11 Jul 14:09
4acc234
Compare
Choose a tag to compare
v0.1.65 Pre-release
Pre-release

Added

  • New files list component
  • .tna-!--hide-on-print class added for hiding elements when printing
  • Separate print stylesheet
  • Buttons can now include an SVG icon
  • Package now includes config files for Babel, ESLint, HTML-validate and Stylelint

Changed

  • Refactored gallery component
  • Allow the size of the heading in the sidebar component to be changed
  • Refactored accordion component for better accessibility
  • Picture transcripts are hidden with until-found
  • Open all accordion items and details elements when printing
  • Changed heading property of sidebar components to title

Removed

  • Removed all print styles from all.css

Fixed

  • Fixed aria-controls property of accordion buttons
  • All component attributes can now have blank values

v0.1.64

24 Jun 16:31
abdc907
Compare
Choose a tag to compare
v0.1.64 Pre-release
Pre-release

Fixed

  • Fixed the optimised .tna-header--no-link-arrow class (again)

v0.1.63

24 Jun 16:18
ce4b236
Compare
Choose a tag to compare
v0.1.63 Pre-release
Pre-release

Fixed

  • Fixed the optimised .tna-header--no-link-arrow class

v0.1.62

24 Jun 15:27
ee5f4d0
Compare
Choose a tag to compare
v0.1.62 Pre-release
Pre-release

Changed

  • The default headingSize for cards has changed from s to m
  • The font size of the scene setter has been reduced

Deprecated

  • The small scene setter style has been removed

Fixed

  • Removed extra spaces from template classes and attributes
  • Fix horizontal card inner padding

v0.1.61

18 Jun 16:14
a677a42
Compare
Choose a tag to compare
v0.1.61 Pre-release
Pre-release

Fixed

  • Fixed some colours combinations

v0.1.60

18 Jun 14:48
caaf5ec
Compare
Choose a tag to compare
v0.1.60 Pre-release
Pre-release

Added

  • New sidebar component

Changed

  • Don't reload the window when disableTracking() is called in the analytics library
  • Added warning when using typography.relative-font-size() to move to typography.font-size() (relative-font-size will be removed in a future release)

Fixed

  • Fixed bug with standard cards (not tinted, contrasted or accented) having extra padding when in a tinted, contrasted or accented ancestor block
  • Fixed standard button colours
  • Changed order of index grid items HTML to make more sense

v0.1.59

13 Jun 13:07
e79f31e
Compare
Choose a tag to compare
v0.1.59 Pre-release
Pre-release

Added

  • Allow lazyImages attribute for lazy loading of index grid images
  • Dashed lists can be used with .tna-ul--dashed and .tna-ol--dashed which replace the markers with dashes

Changed

  • The transcript button on picture components no longer gets a tna-picture__toggle-transcript--opened class when opened

Fixed

  • Fix the error when calling disableTracking() within the analytics library