Skip to content
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

Accordion within Card footer is vertically not aligned. #489

Open
MiroslavPetrik opened this issue Mar 9, 2024 · 0 comments
Open

Accordion within Card footer is vertically not aligned. #489

MiroslavPetrik opened this issue Mar 9, 2024 · 0 comments

Comments

@MiroslavPetrik
Copy link

MiroslavPetrik commented Mar 9, 2024

Describe the issue

The accordion component (details + summary elements) when used within the card component (article + footer elements) has bad styles.

image

Current Behavior

  1. The details has margin-botton which should be turned of for the last-of-type or last-child.
  2. Moreover when the margin is removed, the the summary is then too thin compared to regular text within the footer, so it's lineHeight needs to be larger. (my trivial fix). Also the arrow of the accordion item needs to be aligned with the text...

Expected Behavior

The accordion should look good by default, when used in the cards footer.

My use case is to toggle code samples:
https://form-atoms.github.io/list-atom/?path=/docs/components-list--docs#list-of-objects
The use case already has the custom fixes... but that is unsystematic.

Reproduction URL

https://codesandbox.io/p/sandbox/picocss-spinner-in-code-3y979t

Environment

Example: W11, latest chrome, latest firefox

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant