Open raquelou opened 2 weeks ago
@raquelou The next available DSC meetings is Thursday, June 27 at 11:05am ET. Let me know if you can attend and I will add you to the meeting invite.
@raquelou we think you should be able to do this yourself.
@Andrew565 would you be able to provide guidance on this?
@raquelou In theory (haven't tried this myself yet), when you're defining the icon for the icon slot, you should be able to set the icon size using the size
prop on the va-icon component. We haven't updated the storybook example with va-icon yet, but it should look something like this:
<va-accordion>
<va-accordion-item
header="First Amendment"
id="first"
subheader="Subheader"
>
<va-icon
icon="check"
size="4"
className="vads-u-color--green"
slot="icon"
/>
<p>
Congress shall make no law respecting an establishment of religion, or prohibiting the free exercise thereof; or abridging the freedom of speech, or of the press; or the right of the people peaceably to assemble, and to petition the Government for a redress of grievances.
</p>
</va-accordion-item>
...etc.
In a discussion I had with members of the collab team it sounded like the way the accordion was built any icon that was added would be placed next to the accordion header. If that is the case I am assuming that the supplementary copy would be moved down to adjust for the height of the icon. Please let me know if I am incorrect in my understanding of how the accordion component is built.
What
Purpose
Usage
Behavior
Examples
Accessibility
Guidance
Collaboration Cycle Ticket
Your team
Research (optional)
Code (optional)
Next steps
You may present your work to the Design System Council at an upcoming meeting. If you do not or cannot attend the Design Council Meeting, you can opt to get an asynchronous approval.
Submit requests to join an upcoming Design System Council meeting in #platform-design-system.
During the meeting, the Design System Council Working Group will evaluate the request and make a decision.
If your request is approved, you can add your component or pattern to the system. If you have any questions on how to add your component or pattern to the system, please reach out to the Design System Team at #platform-design-system.