GCTC-NTGC / gc-digital-talent

GC Digital Talent is the new recruitment platform for digital and tech jobs in the Government of Canada. // Talents numériques du GC est la nouvelle plateforme de recrutement pour les emplois numériques et technologiques au gouvernement du Canada.
https://talent.canada.ca
GNU Affero General Public License v3.0
21 stars 8 forks source link

✨ Add middle content to accordion component #11587

Open petertgiles opened 1 week ago

petertgiles commented 1 week ago

✨ Feature

On the manager dashboard we need an accordion that has some space for interactive content between the trigger and the content. Currently, the content is manually added on that page but the spacing is not configurable enough.

🎨 Design

Josh:

Component specification: https://www.figma.com/design/guHeIIh8dqFVCks310Wv0G/Component-library?node-id=5-20&node-type=canvas&t=3VSWIj96B8VFWC0D-0

Accordion that needs middle content: https://www.figma.com/design/oZhQe9ahidHFfaiqgREvxa/Dashboard-(All-users)?node-id=1010-18680&t=jCsiShy545bh9AqT-4

📸 Screenshot

image

🙋‍♀️ Proposed Implementation

From Josh: It would be nice to build this into the component so we can reuse it elsewhere... a slot or something you can pass 0 or more actions to or something similar.

Should accept an array of items, like the preview list item.

✅ Acceptance Criteria

🛑 Blockers

### Blocked By
petertgiles commented 1 week ago

@JoshBeveridge Could you please update the component specification in Figma to show how this should be implemented?

Will the component accept any kind of content in the middle? Or just an array of links?