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

Remove outdated statement about printing <details> elements #2833

Merged
merged 1 commit into from
Jun 14, 2023

Conversation

querkmachine
Copy link
Member

@querkmachine querkmachine commented Jun 8, 2023

It is now possible to force <details> elements to be forcibly opened prior to printing by using the beforeprint event binding.

We don't do anything in Frontend to forcibly open <details> elements, but past precedent on the accordion component would imply that this lack of intervention is desirable, in order to only print what the user has chosen to show.

Given the overall statement is outdated, and we seemingly don't expect services to automatically expand <details> elements anyway, I propose that it is removed outright rather than being modified or reworded.

@querkmachine querkmachine self-assigned this Jun 8, 2023
@netlify
Copy link

netlify bot commented Jun 8, 2023

You can preview this change here:

Name Link
🔨 Latest commit 86a7431
🔍 Latest deploy log https://app.netlify.com/sites/govuk-design-system-preview/deploys/6481f5930d0f4500081c2749
😎 Deploy Preview https://deploy-preview-2833--govuk-design-system-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@querkmachine querkmachine merged commit 31e6211 into main Jun 14, 2023
@querkmachine querkmachine deleted the kg-details-print branch June 14, 2023 09:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

2 participants