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

Contain more-less <summary> inside <details> #288

Merged
merged 1 commit into from
Aug 28, 2023

Conversation

jonathanhefner
Copy link
Member

Prior to this commit, the <summary> element of a more-less list was positioned just below the bottom of the <details> element, which caused it overlap with any subsequent padding or margin.

This commit extends the <details> element by adding bottom padding, and aligns the bottom of the <summary> element with the bottom of the <details> element so that the <summary> is always contained within the block.

Before After
before1 after1
before2 after2

Prior to this commit, the `<summary>` element of a more-less list was
positioned just below the bottom of the `<details>` element, which
caused it overlap with any subsequent padding or margin.

This commit extends the `<details>` element by adding bottom padding,
and aligns the bottom of the `<summary>` element with the bottom of the
`<details>` element so that the `<summary>` is always contained within
the block.
@jonathanhefner jonathanhefner merged commit 3f0fee5 into rails:main Aug 28, 2023
10 checks passed
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

Successfully merging this pull request may close these issues.

1 participant