Releases: nationalarchives/tna-frontend
Releases · nationalarchives/tna-frontend
v0.1.36
Changed
- Tab elements in high contrast mode have an extra keyline to help with visibility
- The header element no longer uses background tint in high contrast mode
- The default cookie banner colour is dark on light but can be changed with a
style
attribute or classes such astna-cookie-banner--contrast
- The card style of
boxed
has been changed tocontrast
in line with other components - The background tint colour on the light theme is slightly darker for better contrast with the page background
- Set smaller minimum width for search field inputs
- Added more space between the text and chevron in a heading link
- Split out Font Awesome into a separate CSS file
- Change the default
htmlLang
fromen-GB
toen
- Changed the aspect ratio of the hero image to be closer to a 3:1
- Update large heading size to not be smaller than medium headings on medium devices
- Remove italicised text from picture element captions and blockquotes, update font sizes
- Reduce padding between checkboxes, radios and their labels when small (thanks @Terry-Price)
- Reduce padding on blockquotes on mobile
Removed
- Removed option for
tna-search-field--no-border
- borders are dictated by the background colours and page theme
Fixed
- Picture elements in high contrast mode have improved borders with no gaps
v0.1.35
v0.1.34
Added
- Base template can now accept
htmlAttributes
- Compound filters can be used to show currently selected search filters
Changed
- Changed
attributes
toformGroupAttributes
andclasses
toformClasses
on checkboxes and radios -attributes
andclasses
now get applied to each checkbox and radio element
Fixed
- Fixed
href
property of paginationprevious
andnext
links
v0.1.33
Added
- Added italic version of Open Sans
Changed
- The default cookie banner colour is dark on light but can be changed with a
style
attribute or classes such astna-cookie-banner--contrast
- The card style of
boxed
has been changed tocontrast
in line with other components - Changed
tna-select--plain
totna-select--styled
- Updated button styles - icon sizes, padding and gaps on small and icon-only buttons
- Removed slash on void elements (updating
<hr />
to<hr>
) - Italicise picture element captions to distinguish from regular text
- Use
text-wrap: pretty;
for headings
v0.1.32
v0.1.31
Added
- Picture elements can have multiple tabs and customisable open/close button text
- A separate
@nationalarchives/frontend-cookie-banner
package is published for services just wanting to use the new TNA Cookie Banner
Changed
- Added XML and DOCTYPE to
src/nationalarchives/assets/images/tna-square-logo.svg
- Removed
fa-fw
from some icons - Message component has a
<div>
rather than a<p>
for the message which allows HTML as content - Hero component caption allows HTML rather than assuming text
- Picture elements have a tinted background, a maximum height for images and break out of the grid on tiny devices
- Changed hero caption icon text from "Image caption" to "About this image"
- Updated the cookie banner attribute
data-policies-key
todata-policieskey
Removed
- Picture elements no longer have
translation
andtranscript
options (see "Added" above for alternative)
v0.1.30
Added
<dl>
elements can now be stacked with<dl class="tna-dl tna-dl--stacked">
Changed
- Cookies class parameter
extraPolicies
moved to key inside the options object parameter
Fixed
- Chip colours and icons in chip lists fixed
- Better support for
<dl class="tna-dl">
elements - Removed some
:has
CSS selectors for better support with Firefox
v0.1.29-prerelease
Changed
- Light font colour changed for better colour contrast on light accented backgrounds
Removed
- High contrast themes don't have outlines when hovering over links
Fixed
- Date search predefined value fixture amended
- Light icons can be used on light accented backgrounds
v0.1.28-prerelease
Added
- Buttons can now have
buttonType
which sets thetype
attribute for<button>
elements
Changed
- Changed style of filters element to match with accent colour
Removed
- Removed
title
attribute from tabs andaria-label
from HTML
Fixed
- Fixed HTML validation errors
v0.1.27-prerelease
Fixed
- Added the correct
aria-label
in index grid components