Skip to content

Releases: nationalarchives/tna-frontend

v0.2.6

02 Aug 14:55
cbb4f43
Compare
Choose a tag to compare
v0.2.6 Pre-release
Pre-release

Added

  • Spaced option for description lists with .tna-dl--spaced

Changed

  • Removed the tabindex on open accordion items
  • Theme selector icons in footer changed to SVGs
  • Updated style of gallery next and previous buttons
  • Header and global header menu buttons now have text
  • Reduced size of logo in header component
  • Header markup changed to align more closely with global header
  • Updated the newsletter block style in the footer

Removed

  • Pressing the up and down keyboard arrows no longer changes images within a gallery

Fixed

  • Pressing Escape whilst focused anywhere on the header or global header components will close the menu if it is open
  • Icon vertical alignment fixed in description lists

v0.2.5

30 Jul 15:23
e7a6900
Compare
Choose a tag to compare
v0.2.5 Pre-release
Pre-release

Changed

  • Change default cookie age back to 31536000 (1 year) but allow { session: true } for session cookies
  • Allow default cookie age to be set on instantiation

v0.2.4

30 Jul 14:57
274d506
Compare
Choose a tag to compare
v0.2.4 Pre-release
Pre-release

Added

  • New style added for plain picture components

Changed

  • Allow search field to be smaller than the browser default
  • Reduced space between paragraphs in hero captions
  • Default cookie age changed from 31536000 (1 year) to null (session cookie)

Fixed

  • Added missing space above gallery component
  • Updated gallery analytics

v0.2.3

30 Jul 09:42
293668f
Compare
Choose a tag to compare
v0.2.3 Pre-release
Pre-release

Added

  • Analytics added for accordion, detail and gallery components

Changed

  • Large paragraphs (.tna-large-paragraph) that follow headings and heading groups have less top margin
  • Switch .tna-gallery--fullscreen class for .tna-gallery:fullscreen

Fixed

  • Further fixed gallery component layout when CSS loads but JS fails
  • Buttons, inputs, selects and textareas now use the correct typeface rather than the browser default

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