-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
calcite-accordion-item content padding #4012
Comments
I also ran into this. I tried to use the |
Design recommendations add to description above. |
This was not addressed in #9861, will need to be a follow-up consideration for design tokens. |
Ah! Got it. Will address ASAP |
The above will have two different solutions:
|
Updated the Calcite Design Solution section above. We only need to provide a variable to control the spacing around the content slot, per the original request. This would match our pattern across the system. This comment was misread. If control over the header spacing is also required, a new issue should be filed. |
**Related Issue:** #4012 ## Summary ### Add spacing Removes pt-0 from .content to allow spacing between the header-content and content. #### Before <img width="268" alt="Screenshot 2024-11-13 at 11 30 49 AM" src="https://github.com/user-attachments/assets/aef62811-5a09-43e1-8328-330cb2c46bc2"> #### After <img width="267" alt="Screenshot 2024-11-13 at 11 30 59 AM" src="https://github.com/user-attachments/assets/dd92b276-259e-400b-9fcb-f048b5858426">
**Related Issue:** #4012 ## Summary ### Add spacing Removes pt-0 from .content to allow spacing between the header-content and content. #### Before <img width="268" alt="Screenshot 2024-11-13 at 11 30 49 AM" src="https://github.com/user-attachments/assets/aef62811-5a09-43e1-8328-330cb2c46bc2"> #### After <img width="267" alt="Screenshot 2024-11-13 at 11 30 59 AM" src="https://github.com/user-attachments/assets/dd92b276-259e-400b-9fcb-f048b5858426">
Installed and assigned for verification. |
🍡 Verified on |
Description
calcite-accordion-item
's shadow domdiv[class="accordion-item-content"]
has a rendered padding of0 0.75rem 0.5rem 0.75rem
. The top padding of0
puts any content right up against the bottom of the accordion header and the header focus can overlap the content by a pixel or so.Acceptance Criteria
Put some space betweencalcite-accordion-item
header and content.See Calcite Design Solution below
Relevant Info
No response
Which Component
calcite-accordion-item
Example Use Case
No response
Calcite Design Solution
Add separate CSS vars for the header area and the content area, per commentMedium scale example:
The text was updated successfully, but these errors were encountered: