|
1 | | -# 012-04 Implement FAQ expand/collapse with animation |
| 1 | +# 012-04 Implement FAQ expand/collapse with height animation |
2 | 2 |
|
3 | 3 | [Back to task list](../tasks.md) |
4 | 4 |
|
5 | 5 | ## Description |
6 | 6 |
|
7 | | -Add an interactive FAQ section using detail/summary elements, enhanced with smooth expand/collapse animation for a polished user experience. |
| 7 | +Add an interactive FAQ section using `<details>` and `<summary>` elements, enhanced with a smooth expand/collapse height animation for a polished user experience. |
8 | 8 |
|
9 | 9 | ## Status History |
10 | 10 |
|
11 | | -| Timestamp | Event Type | From Status | To Status | Details | User | |
12 | | -| ------------------- | ------------- | ----------- | --------- | ----------------- | -------- | |
13 | | -| 2025-07-10 13:29:30 | Status Change | Proposed | | Task file created | ai-agent | |
| 11 | +| Timestamp | Event Type | From Status | To Status | Details | User | |
| 12 | +| ------------------- | ------------- | ----------- | ---------- | -------------------------------------------------- | -------- | |
| 13 | +| 2025-07-10 13:29:30 | Status Change | Proposed | | Task file created | ai-agent | |
| 14 | +| 2025-07-12 11:56:36 | Status Update | Proposed | Agreed | User approved task. | Gemini | |
| 15 | +| 2025-07-12 11:56:36 | Status Update | Agreed | InProgress | Beginning implementation. | Gemini | |
| 16 | +| 2025-07-12 11:58:26 | Status Update | InProgress | Review | Implementation is ready for review. | Gemini | |
| 17 | +| 2025-07-12 12:00:16 | Status Update | Review | InProgress | Revising animation method per user feedback. | Gemini | |
| 18 | +| 2025-07-12 12:01:30 | Status Update | InProgress | Review | Corrected implementation is ready for review. | Gemini | |
| 19 | +| 2025-07-12 12:05:10 | Status Update | Review | InProgress | Restored height animation per user request. | Gemini | |
| 20 | +| 2025-07-12 12:05:10 | Status Update | InProgress | Review | Animation restored and verified. Ready for review. | Gemini | |
| 21 | +| 2025-07-12 12:06:57 | Status Update | Review | Done | User approved the final implementation. | Gemini | |
14 | 22 |
|
15 | 23 | ## Requirements |
16 | 24 |
|
17 | | -- FAQ uses detail/summary elements |
18 | | -- Smooth expand/collapse animation is implemented |
19 | | -- Accessible and keyboard-navigable |
| 25 | +- FAQ uses `<details>` and `<summary>` elements. |
| 26 | +- A smooth expand/collapse height animation is implemented. |
| 27 | +- The section is accessible and keyboard-navigable. |
20 | 28 |
|
21 | 29 | ## Implementation Plan |
22 | 30 |
|
23 | | -- Use native detail/summary for FAQ |
24 | | -- Add CSS/JS for animation |
25 | | -- Test accessibility and keyboard support |
| 31 | +- Use native `<details>` and `<summary>` for the FAQ structure. |
| 32 | +- Add CSS to animate the `height` property of the `<details>` element, transitioning from a fixed collapsed height to `auto` when open. |
26 | 33 |
|
27 | 34 | ## Verification |
28 | 35 |
|
29 | | -- Animation is smooth and reliable |
30 | | -- FAQ is accessible and easy to use |
| 36 | +- The animation is smooth and reliable across browsers. |
| 37 | +- The FAQ section is accessible and easy to use with both mouse and keyboard. |
31 | 38 |
|
32 | 39 | ## Files Modified |
33 | 40 |
|
34 | | -- [list files to be created/modified] |
| 41 | +`hugo/layouts/partials/about-doulas/faq.html` |
| 42 | +`hugo/assets/scss/about-doulas.scss` |
| 43 | +`docs/delivery/012/012-04.md` |
| 44 | +`docs/delivery/012/tasks.md` |
0 commit comments