From f7eff48c665ba5d59756c7d9013bcd058ba41575 Mon Sep 17 00:00:00 2001 From: Elizabeth Mitchell Date: Tue, 18 Jul 2023 14:34:01 -0700 Subject: [PATCH] fix(focus)!: move --md-focus-ring tokens to host BREAKING CHANGE: Set `--md-focus-ring-*` tokens directly on `` elements. Focus rings are exposed with `::part(focus-ring)`. PiperOrigin-RevId: 549114124 --- docs/components/focus-ring.md | 54 +++++++++----------------------- focus/demo/demo.ts | 14 +-------- focus/demo/stories.ts | 4 --- focus/lib/_focus-ring.scss | 58 +++++++++++++++++++---------------- 4 files changed, 48 insertions(+), 82 deletions(-) diff --git a/docs/components/focus-ring.md b/docs/components/focus-ring.md index 9ced13f649..a3f5e8af24 100644 --- a/docs/components/focus-ring.md +++ b/docs/components/focus-ring.md @@ -33,28 +33,16 @@ one of three ways. 1. Attached to the parent element ```html - - ``` 1. Attached to a referenced element ```html - -
- +
+
``` @@ -62,14 +50,8 @@ one of three ways. 1. Attached imperatively ```html - -
- +
+