Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Commit

Permalink
feat(fab): Add focus outline mixins to MDC Fab
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 336380201
  • Loading branch information
abhiomkar authored and copybara-github committed Oct 9, 2020
1 parent f4be900 commit 7a9afaf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ Material Components for the web is the successor to [Material Design Lite](https
- [Supported browsers](docs/supported-browsers.md)
- [All Components](packages/)
- [Changelog](./CHANGELOG.md)
- [Roadmap](./ROADMAP.md)

## Quick start

Expand Down
9 changes: 4 additions & 5 deletions packages/mdc-fab/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,6 @@ $ripple-target: '.mdc-fab__ripple';

@include ripple.common($query); // COPYBARA_COMMENT_THIS_LINE

// postcss-bem-linter: define fab

.mdc-fab {
@include ripple.surface($query: $query, $ripple-target: $ripple-target);
@include ripple.radius-bounded(
Expand All @@ -127,17 +125,18 @@ $ripple-target: '.mdc-fab__ripple';
$ripple-target: $ripple-target
);

// stylelint-disable-next-line plugin/selector-bem-pattern
#{$ripple-target} {
@include ripple.target-common($query: $query);

@include feature-targeting.targets($feat-structure) {
overflow: hidden;
// Fixes Safari on Mac & iOS issue where ripple overflows button
// rendered in square shape. Creating new stacking context fixes this
// issue.
z-index: -1;
}
}
}

// postcss-bem-linter: end
}

@mixin accessible($container-color, $query: feature-targeting.all()) {
Expand Down

0 comments on commit 7a9afaf

Please sign in to comment.