Skip to content

Commit

Permalink
style(card): Improved focus ring
Browse files Browse the repository at this point in the history
  • Loading branch information
maicol07 committed Jun 21, 2023
1 parent c2204d5 commit 7043e9f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions card/lib/_card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,11 @@ $_custom-property-prefix: 'card';

border: var(--_outline-width) solid var(--_outline-color);
}

md-focus-ring {
--md-focus-ring-shape: 12px;
--md-focus-ring-outward-offset: -3px;
--md-focus-ring-shape-end-end: 0;
--md-focus-ring-shape-end-start: 0;
}
}
2 changes: 1 addition & 1 deletion card/lib/card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export abstract class Card extends LitElement {
/** @soyTemplate */
protected renderFocusRing() {
return html`
<md-focus-ring for="primary-action"></md-focus-ring>`;
<md-focus-ring for="primary-action" inward></md-focus-ring>`;
}

protected onButtonSlotChanged() {
Expand Down

0 comments on commit 7043e9f

Please sign in to comment.