6th June 2024
AgDS Beta v1.22.0 release
New File upload error UI and related fixes, accessible focus management support for various components, App layout theming, co-branded Header, plus various bug fixes and improvements.
Updates
App layout
- Add
backgroundandpalettesupport toAppLayoutFooter,AppLayoutHeader&AppLayoutSidebar. - Fix
AppLayoutSidebarnot closing on item press.
Box
- Deprecate
focusprop in favour of newfocusRingForprop to enable a focus ring when the element is keyboard focused (focusRingFor="keyboard") and programmatically focused (focusRingFor="all"). - Add
breakWordsprop to let words break across multiple lines where necessary. - Add
alignSelfCSS prop. - Add
justifySelfCSS prop. - Add
'start'and'end'as validalignItemsvalues. - Document all style props.
Button
- Add
alignSelfCSS prop fromBox. - Add
focusRingForprop to allow programmatic focus, e.g. via a link, to render the focus ring. This is available forButtonandButtonLink.
Core
- Add new
useFocushook to allow an element to be focused when it’s mounted and updated.
Drawer
- Add
elementToFocusOnCloseprop to allow custom element to be focused when the drawer closes.
File upload
- New implementation of error handling: new UI and unaccepted files no longer trigger the invalid state.
- When using
multiple, duplicate files aren’t selected. maxFilesnow uses the total files being uploaded, not just current selection.
Grouped fields
- Remove unused
requiredprop.
Header
- Support second logo with link for co-branding.
Icon
- Prevent icons from shrinking smaller than their intended size.
List
- Add
BoxPropsto allowed types forListItem.
Page alert
- Add
focusOnMountprop to focus the alert as soon as it’s rendered to the page. - Add
focusOnUpdateprop for to focus the alert when content updates. - Add
focusRingFor="all"to improve accessibility for programmatically focused alerts.
Section alert
- Add
focusOnMountprop to focus the alert as soon as it’s rendered to the page. - Add
focusOnUpdateprop for to focus the alert when content updates. - Add
focusRingFor="all"to improve accessibility for programmatically focused alerts. - Ensure Close button is always aligned to the top.
Summary list
- Increase gap between
SummaryListItemTermandSummaryListItemDescriptionto show a clearer separation.
Table
- Add
invalidprop toTableRowcomponent to visually indicate a row with error. - Docs: Fix example header alignment.
Task list
- Make
doneRecentlystatus count towardsstepsCompleted.
Text
- Remove unnecessary margin reset CSS.
Released packages
"@ag.ds-next/react": "1.22.0"Full changelog
Aside from the complete release notes on the @ag.ds-next website, you can also view the verbose change log in the related PR for this release.