department-of-veterans-affairs / va-mobile-library

https://department-of-veterans-affairs.github.io/va-mobile-library/
ISC License
1 stars 0 forks source link

Alert - Add Expand/Collapse Support #246

Closed TimRoe closed 5 months ago

TimRoe commented 6 months ago

Description

Split from #132 to add expand/collapse support as it turns out that's a separate component in flagship and deemed complex enough to sensibly separate to keep tickets relatively targeted as that ticket was sizable without expand/collapse behavior.

Acceptance Criteria

- [ ] Add expand/collapse support to Alert component that needs a header present and hides all content except the header when collapsed - [ ] Component has been manually tested inside the app in at least one place - [ ] Clean up commented out code for scroll-to-Alert and haptics behavior AC addition 4/16/24: - [ ] Split from #240: add [similar solution](https://github.com/department-of-veterans-affairs/va-mobile-library/pull/275/files) on the Alert component which expects similar icon behavior and copied the Link's method **Accessibility Requirements** - [ ] Validate screen reader behaves as expected encountering a collapsed Alert/allows opening as expected ## Notes & Open Questions - Dev Notes: - See CollapsibleAlert in flagship for modeling behavior for the collapsing version