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

summary element styling needs to be scoped to details element #891

Open
scottaohara opened this issue Dec 12, 2022 · 1 comment · May be fixed by #894
Open

summary element styling needs to be scoped to details element #891

scottaohara opened this issue Dec 12, 2022 · 1 comment · May be fixed by #894

Comments

@scottaohara
Copy link

The current display style applied to the summary element results in unwanted list-item styling for instances where the summary element is not used properly.

summary {
  display: list-item;
}

This should rather be something like details > summary:first-of-type - which matches how modern browsers are treating the element.

scottaohara added a commit to scottaohara/normalize.css that referenced this issue Dec 12, 2022
closes necolas#891

This revised style ensures that only summary elements that are properly used will be provided the `display: list-item` style.
@scottaohara scottaohara linked a pull request Jan 20, 2023 that will close this issue
@BamaCharanChhandogi
Copy link

Hey, is this issue open?

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 a pull request may close this issue.

2 participants