Skip to content

Commit

Permalink
chore(components): added type button to prevent form submission
Browse files Browse the repository at this point in the history
  • Loading branch information
schaertim committed Dec 18, 2024
1 parent 912198c commit e84f981
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/early-baboons-cross.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@swisspost/design-system-components': patch
---

Added type button to prevent `post-close-button` from submitting forms.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export class PostClosebutton {
render() {
return (
<Host data-version={version}>
<button class="btn btn-icon-close">
<button class="btn btn-icon-close" type="button">
<post-icon aria-hidden="true" name="closex"></post-icon>
<span class="visually-hidden">
<slot></slot>
Expand Down

0 comments on commit e84f981

Please sign in to comment.