Skip to content

Commit

Permalink
fix(material/tabs): tab header is clickable if its disable
Browse files Browse the repository at this point in the history
Prior this commit disabled tab header content is clickable and causing event when it shouldn't

Fixes angular#27071
  • Loading branch information
naaajii committed May 13, 2023
1 parent aecb18a commit 80d7986
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/material/tabs/_tabs-common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,11 @@ $mat-tab-animation-duration: 500ms !default;
// hover and focus selectors.
pointer-events: none;

// We also need to prevent content from being clickable.
.mdc-tab__content {
pointer-events: none;
}

@include token-utils.use-tokens(
tokens-mat-tab-header.$prefix,
tokens-mat-tab-header.get-token-slots()
Expand Down

0 comments on commit 80d7986

Please sign in to comment.