Releases: nationalarchives/tna-frontend
Releases · nationalarchives/tna-frontend
v0.2.12
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 thewindow
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
v0.2.10
Added
$import-google-fonts
option (default:true
) which can disable the inclusion of Google Fonts using an@import
declaration- A new
all+analytics.js
file now exists which can be used as a drop-in replacement forall.js
- Google Analytics 4 can be automatically be instantiated by adding a
data-ga4
property to the<html>
element - New horizontal card options to control image width and position
- Added a CSS file for basic IE support (
ie.css
)
Changed
- Removed the top and bottom padding of the breadcrumbs component
- Change the order of the HTML in hero components to put the caption below the image
- Refactored the card component to use CSS grid
Fixed
- Changed conflicting GA4 window object instance in GA4 class from
TNAFrontendAnalytics
toTNAFrontendAnalyticsGA4
- Adjusted margin bottom of narrow, shifted hero components
v0.2.9
v0.2.8
Added
- New option
accentMeta
on card component to make meta tags accented - Added image loader animations to card, hero, index grid, gallery and picture components
- Containers can be nested with
.tna-container--nested
- Sticky sidebars can be "unstuck" on smaller devices with
.tna-sidebar--static-on-mobile
- Added classeless styles for
<address>
elements
Changed
- Refactored tabs component
- Removed unnecessary
title
attributes from footer, gallery, hero and index grid components - Added lazy loading to gallery images
- The
title
of gallery components is now optional - Reduced space above details components
- Added side padding to plain picture components
- Adjusted spacing of
<p>
elements inside<li>
and<dd>
elements
Removed
- Removed container
--no-padding-all
classes and replaced with--no-padding
classes for both containers and columns
Fixed
- Removed max height for gallery components
v0.2.7
Added
- Content in the cookie banner component is now customisable
Fixed
- Change skip link colours when hidden to avoid accessibility failures being raised
- Fixed incorrect use of
navigationId
andtopNavigationId
in global header component - Fixed padding of sticky sidebars
- Fixed header navigation toggle analytics
v0.2.6
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
v0.2.4
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) tonull
(session cookie)
Fixed
- Added missing space above gallery component
- Updated gallery analytics
v0.2.3
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