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

Add additional address toggle in checkout #16405

Conversation

bartek-sek
Copy link

No description provided.

@bartek-sek bartek-sek requested review from a team as code owners June 14, 2024 11:23
@probot-autolabeler probot-autolabeler bot added the Shop ShopBundle related issues and PRs. label Jun 14, 2024
Copy link

github-actions bot commented Jun 14, 2024

Bunnyshell Preview Environment deleted

Available commands:

  • /bns:deploy to redeploy the environment

@kulczy
Copy link
Member

kulczy commented Jun 14, 2024

The script itself is okay, but it's always better to write something more general in case you need to use the show/hide mechanism elsewhere in the future.

Fortunately, we don't need to because Bootstrap already has such a script. We just need to write a listener that will react to the checkbox instead of the button. https://getbootstrap.com/docs/5.3/components/collapse

As for IDs, we try not to use IDs but rather data-... because later it's unclear whether the attribute is used for identification/scripts/styles or something else.

@kulczy kulczy merged commit 3c5fa63 into Sylius:bootstrap-shop Jun 17, 2024
14 of 19 checks passed
@kulczy
Copy link
Member

kulczy commented Jun 17, 2024

thanks @bartek-sek

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Shop ShopBundle related issues and PRs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants