Skip to content

Commit

Permalink
style(card): Adds minimal styles for card focus ring structure
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 647010470
  • Loading branch information
material-web-copybara authored and copybara-github committed Jun 26, 2024
1 parent cfec83c commit 423edc3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/mdc-card/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ $ripple-target: '.mdc-card__ripple';
.mdc-card {
@include feature-targeting.targets($feat-structure) {
@include container-layout_;
position: relative;
}

// Transparent card border for high-contrast mode.
Expand Down Expand Up @@ -81,6 +82,12 @@ $ripple-target: '.mdc-card__ripple';
}
}

.mdc-card__focus-ring {
@include feature-targeting.targets($feat-structure) {
position: absolute;
}
}

//
// Media
//
Expand Down

0 comments on commit 423edc3

Please sign in to comment.