Skip to content

fix: make Safari rendering of summary elements the same as other browsers #964

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

Merged
merged 1 commit into from
Dec 9, 2024

Conversation

BernieSumption
Copy link
Contributor

For Chromium-based browsers and Firefox, setting display: block or display: flex on a <summary> element will hide the expand/contract arrow icon. Svelte does this and provides alternative affordances to indicate whether the summary is open.

Safari needs a bit more help, requiring display:none on the ::-webkit-details-marker pseudoelement.

This PR adds ::-webkit-details-marker to the 4 places I could find summary elements, making Safari consistent with other browsers.

Tutorial navigation menu trigger button

Before:

image

After:

image

Tutorial navigation menu

Before:

image

After:

image

In site search

Before:

image

After:

image

In Text.svelte

e.g. on https://svelte.dev/blog/view-transitions

Before:

image

After:

image

Copy link

vercel bot commented Dec 9, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
svelte-dev ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 9, 2024 9:37am

Copy link

vercel bot commented Dec 9, 2024

@BernieSumption is attempting to deploy a commit to the Svelte Team on Vercel.

A member of the Team first needs to authorize it.

@Rich-Harris Rich-Harris merged commit d697639 into sveltejs:main Dec 9, 2024
4 checks passed
@Rich-Harris
Copy link
Member

fantastic, thank you!

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.

2 participants