Skip to content

fix(snackbar): add type="button" - 22.2.x - #17742

Open
igdmdimitrov wants to merge 2 commits into
22.2.xfrom
dmdimitrov/fix-17638-22.2.x
Open

igdmdimitrov wants to merge 2 commits into
22.2.xfrom
dmdimitrov/fix-17638-22.2.x

Conversation

@igdmdimitrov

Copy link
Copy Markdown
Contributor

Closes #17638

Description

Add type="button" to snackbar component

Type of Change (check all that apply):

  • Bug fix
  • New functionality
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Refactoring (no functional changes)
  • Documentation
  • Demos
  • CI/CD
  • Tests
  • Changelog
  • Skills/Agents

Component(s) / Area(s) Affected:

Snackbar

How Has This Been Tested?

  • Unit tests
  • Manual testing
  • Automated e2e tests

Checklist:

  • All relevant tags have been applied to this PR
  • This PR includes unit tests covering all the new code (test guidelines)
  • This PR includes API docs for newly added methods/properties (api docs guidelines)
  • This PR includes feature/README.MD updates for the feature docs
  • This PR includes general feature table updates in the root README.MD
  • This PR includes CHANGELOG.MD updates for newly added functionality
  • This PR contains breaking changes
  • This PR includes ng update migrations for the breaking changes (migrations guidelines)
  • This PR includes behavioral changes and the feature specification has been updated with them
  • Accessibility (ARIA, keyboard navigation, focus management) has been verified

Copilot AI balanced review requested due to automatic review settings October 7, 2026 11:26

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

The targeted fix correctly addresses the reported behavior and includes appropriate regression coverage.

Review effort: Balanced
Findings: None

What changed in this PR

Prevents snackbar action buttons from implicitly submitting parent forms.

Changes:

  • Adds type="button" to the default action button.
  • Adds regression coverage.
  • Documents the fix in the changelog.
File Description
snackbar.component.html Sets the action button type.
snackbar.component.spec.ts Verifies the rendered button type.
CHANGELOG.md Records the bug fix.

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants