Skip to content

Commit

Permalink
fix(snackbar): Update a11y structure to announce label and actions
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 331650510
  • Loading branch information
EstebanG23 authored and Copybara-Service committed Sep 14, 2020
1 parent 83d83f1 commit 40d8e47
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/mdc-snackbar/_mixins.scss
Expand Up @@ -81,6 +81,13 @@
}
}

.mdc-snackbar--open .mdc-snackbar__label,
.mdc-snackbar--open .mdc-snackbar__actions {
@include feature-targeting.targets($feat-structure) {
visibility: visible;
}
}

.mdc-snackbar--leading {
@include position-leading($query: $query);
}
Expand Down Expand Up @@ -141,6 +148,7 @@
flex-grow: 1;
box-sizing: border-box;
margin: 0;
visibility: hidden;

// 14px top/bottom padding needed to make the height 48px.
padding-top: 14px;
Expand All @@ -163,6 +171,7 @@
flex-shrink: 0;
align-items: center;
box-sizing: border-box;
visibility: hidden;
}
}

Expand Down

0 comments on commit 40d8e47

Please sign in to comment.