Skip to content

bug(expansion): Expansion panel header changes color when clicking a button inside #22942

Open
@ciriousjoker

Description

@ciriousjoker

Reproduction

Steps to reproduce:

  1. Go to the Stackblitz or to the bottom example
  2. Click the "close" or "previous" button to close the panel

Expected Behavior

Panel should close, nothing more.

Actual Behavior

Panel header is "focused", which looks odd considering you just tried to close it (and potentially even changed to another open panel).

If this is intended, is there any way to programmatically remove focus to fix it?

Environment

  • Angular: 12.0.3 (as seen in the Stackblitz)
  • CDK/Material: 12.0.4 (as seen in the Stackblitz)
  • Browser(s): Chrome 91.0.4472.77 (Official Build) (64-Bit) (cohort: Stable)
  • Operating System: Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    P4A relatively minor issue that is not relevant to core functionsarea: material/expansionhelp wantedThe team would appreciate a PR from the community to address this issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions