Releases: nationalarchives/tna-frontend
Releases · nationalarchives/tna-frontend
v0.8.0
v0.7.2
Changed
- Markers for ordered and unordered lists have changed from the accent colour to the light font colour
tna.pref.prefers-contrast
reportsnormal
rather than a blank string in the analytics library when the user has no specific contrast preference- Improvements to high contrast support for hero components, cards components and lists
Removed
- Changed all experimental
hidden="until-found"
attributes tohidden
Fixed
- Add missing
type
attribute to the expand button in the breadcrumbs component
v0.7.1
v0.7.0
Added
- Capture user preferences (such as dark mode, reduced motion etc.) in GA4
- Text inputs can be turned into password inputs with
password: true
- Conditional tracking of events with
onCondition
Changed
- Ensure accordion
aria-label
attributes are trimmed
Deprecated
- Deprecated the
@nationalarchives/frontend-cookie-banner
package
Fixed
- Trimmed
innerText
when tracking events
v0.6.0
v0.5.0
Added
- More tracking added to accordions, breadcrumbs, footers, galleries, headers and sidebars
- Disable Google Chrome's "Auto dark theme" option
Changed
- Optional
data-tnacookiesdomain
anddata-tnacookiespath
attributes on the<html>
element are nowdata-tna-cookies-domain
anddata-tna-cookies-path
- The
data-preferenceskey
anddata-policieskey
attributes on the cookies component are nowdata-preferences-key
anddata-policies-key
- The
data-disableautofocus
attribute on the error summary component is nowdata-disable-autofocus
- The
data-informationlabelopen
anddata-informationlabelclose
attributes on the picture component are nowdata-information-label-open
anddata-information-label-close
$disable-image-loader-animations
(default:false
) invariables/features
has changed to$image-loader-animations
(default:true
)
Fixed
- Style for current selected gallery item fixed
v0.4.0
Added
- Optional
data-tnacookiesdomain
anddata-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 colourtna-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 toaria-current
v0.3.0
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
andheight
attributes to inline SVGs - Top border on cards with no images fixed for high contrast mode
v0.2.18
Changed
- Added
aria-label
attributes to all elements with customtitle
attributes - Added a title for items in pagination components ("Page x")
- The LTS version of NodeJS used has been upgraded from
iron
(20.x
) tojod
(22.x
)
Removed
- Pagination items no longer have a
label
attribute - this is instead defined asPage x
wherex
is thenumber
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