Skip to content

Commit

Permalink
fix(material/tabs): tab header is clickable if its disable (angular#2…
Browse files Browse the repository at this point in the history
…7091)

Prior this commit disabled tab header content is clickable and causing event when it shouldn't

Fixes angular#27071
  • Loading branch information
naaajii authored Jun 6, 2023
1 parent 1cb210b commit 06aa8e5
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 06aa8e5

Please sign in to comment.