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 JavaScript from Details component #3766

Merged
merged 7 commits into from
Jun 20, 2023
Merged

Remove JavaScript from Details component #3766

merged 7 commits into from
Jun 20, 2023

Conversation

domoscargin
Copy link
Contributor

@domoscargin domoscargin commented Jun 7, 2023

Part of #3464

@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-pr-3766 June 7, 2023 15:38 Inactive
Copy link
Contributor

@36degrees 36degrees left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs a changelog entry, but otherwise makes me very happy to see this being tidied into oblivion 🗑️

@36degrees
Copy link
Contributor

@domoscargin what needs to be done to get this out of draft / mergeable? 🙂

@domoscargin
Copy link
Contributor Author

@36degrees I was waiting till #3758 is ready, since merging this PR will create the styling issue with older browsers which aren't polyfilled.

Otherwise we could take the view that we're going to merge #3758 shortly anyway, and get this one merged sooner? Happy either way.

@colinrotherham
Copy link
Contributor

@domoscargin How about I merge the ES2015 classes first in #3771 but then rebase this branch for you, avoiding any conflicts?

@domoscargin
Copy link
Contributor Author

@colinrotherham Was just opening this up to do a rebase, but since you're close to the work, go ahead!

@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-pr-3766 June 12, 2023 08:38 Inactive
@colinrotherham
Copy link
Contributor

@domoscargin Rebased this one + #3758

@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-pr-3766 June 19, 2023 11:40 Inactive
@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-pr-3766 June 20, 2023 13:41 Inactive
EdgeHTML is the only browser engine that supports `-ms-ime-align`, so we can check Edge 12 - 18 by applying this property.

https://browserstrangeness.github.io/css_hacks.html

We can target Edge 16 - 18 more specifically, but keeping it simple for now.

This approach just wraps almost everything in a check to see the browser DOESN'T support `-ms-ime-align`, but separates some spacing and border styles to make things look tolerable.
@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-pr-3766 June 20, 2023 13:44 Inactive
@domoscargin domoscargin marked this pull request as ready for review June 20, 2023 14:34
@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-pr-3766 June 20, 2023 14:34 Inactive
@domoscargin domoscargin merged commit 0ba4e09 into main Jun 20, 2023
25 checks passed
@domoscargin domoscargin deleted the bk-details-js branch June 20, 2023 14:39
36degrees added a commit that referenced this pull request Nov 9, 2023
This example was used to test the JavaScript polyfill for the details component on a `<div>` to ensure that it added the same functionality as the native `<details>` element.

We removed that JavaScript polyfill in #3766.

This example no longer functions correctly (it renders something that looks like the details component, but clicking the summary does not open or close) and serves no purpose, so we can remove it.
querkmachine pushed a commit that referenced this pull request Nov 13, 2023
This example was used to test the JavaScript polyfill for the details component on a `<div>` to ensure that it added the same functionality as the native `<details>` element.

We removed that JavaScript polyfill in #3766.

This example no longer functions correctly (it renders something that looks like the details component, but clicking the summary does not open or close) and serves no purpose, so we can remove it.
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.

4 participants