Releases: nationalarchives/tna-frontend
Releases · nationalarchives/tna-frontend
v0.11.0
Changed
- Cookie library settings can now be set at a document level in the
<html>
element rather than at a cookie banner level - in addition todata-tna-cookies-domain
anddata-tna-cookies-path
parameters, there is nowtna-cookies-policies-key
,tna-cookies-default-age
andtna-cookies-insecure
- Removed right and left margin from plain picture components
Removed
- Removed
policies
,policiesKey
,cookiesDomain
,cookiesPath
andallowInsecure
options from the cookie banner component
v0.10.0
Removed
- The cookie library and the cookie banner component can no longer have custom cookie policies; only the four standard (
usage
,settings
,marketing
andessential
)
Fixed
- Better support for cookie banners with edge cases when partial or malformed cookie policies already exist
- Changed incorrect
aria-title
attribute on password input fields toaria-label
v0.9.0
Added
- Page not found error page template added to prototype kit
Changed
- Default theme for prototypes changed from "light" to "system"
- Disabled
-apple-system-body
for dynamic type support in non-touch Apple devices due to issues in Mac OS (https://codepen.io/chrislachance/pen/OJpmgrM)
Fixed
- If cookie policies are invalid or missing when the cookie class is initiated, the cookie banner is shown regardless of the existance of a
cookie_preferences_set
cookie
v0.8.1
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