Changelog
v2.0.2
Modal
- Fix for modal focus trap, broken by switching from
display: none
tovisibility: hidden
in v2
v2.0.1
Carousel
- Next and previous slide buttons are no longer required if slide picker buttons are provided.
Modal
- Variable
$ace-modal-switch-breakpoint
redefined with!default
. - Added
overflow: auto
toace-modal
so that overflow content is visible.
v2
General
- All custom events dispatched to ACE components must now be dispatched on
window
with thedetail
property of the custom event containing the ID of the target ACE component. This change makes it easier for ACE components to be used with JavaScript frameworks. - Fixed type-ahead for Listbox, Select and Menu so that it works with list options that have descendants with no text content, e.g. images.
Accordion
- Custom event name
CHANGED
changed toPANEL_VISIBILITY_CHANGED
. - Custom events
ace-accordion-show-panels
&ace-accordion-hide-panels
renamed toace-accordion-show-all-panels
&ace-accordion-hide-all-panels
respectively. - Trigger button now takes up entire width of parent heading element so that it can be activated when using Android's Talkback.
Carousel
- Custom event
ace-carousel-slide-changed
renamed toace-carousel-selected-slide-changed
.
Disclosure
- Custom event
ace-disclosure-changed
renamed toace-disclosure-visibility-changed
.
Listbox
- Fixed bug that made the entire page scroll to Listboxes on page load.
Modal
- Modal is now hidden using
visibility: hidden
as opposed todisplay: none
due to issue with VoiceOver not moving focus to Modal when opened. - Modal itself now receives focus as opposed to it's first focussable descendant. This allows screen readers to announce it properly when it is shown.
- Custom event
ace-modal-changed
renamed toace-modal-visibility-changed
.
Tabs
- Custom event
ace-tab-changed
renamed toace-tabs-selected-tab-changed
.
Toast
- Toast now moves it's children into an inner
div
upon instantiation and attaches accessibility attributes to thediv
so that the Toast is announced by Android's Talkback screen reader. - Custom event
ace-toast-changed
renamed toace-toast-visibility-changed
.
Tooltip
- Custom event
ace-tooltip-changed
renamed toace-tooltip-visibility-changed
. - Handler function that repositions overflowing tooltip is now called during initialisation to prevent Tooltips from overflowing and the page from resizing.
- Reduced default delay time to 750ms.
- Removed
ace-tooltip-nowrap
and instead gave Tooltips awidth: max-content
and a max-width to improve their sizing and how they overflow. - Add a font-size and font-weight to Tooltips so they don't inherit different styles from their targets.
v1.3
- Switched to TypeScript strict mode to allow better integration with projects that use strict mode.
v1.2.2
- Improved automatic ID generation
v1.2.1
Initial stable release