Skip to content

Commit

Permalink
fix(material/tabs): tab header is clickable if its disable (#27091)
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 #27071

(cherry picked from commit 06aa8e5)
  • Loading branch information
naaajii authored and crisbeto committed Jun 6, 2023
1 parent 0297e98 commit b6a9895
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 b6a9895

Please sign in to comment.