From 0ec1fabc39222cac4446c8e2b85d74d2a5d21e1a Mon Sep 17 00:00:00 2001 From: Patty RoDee Date: Mon, 9 Dec 2019 14:34:24 -0800 Subject: [PATCH] feat(switch): Restructure DOM (#5312) Move switch native control out of thumb element and into track element. BREAKING CHANGE: Switch DOM structure has changed. See switch README for details --- packages/mdc-switch/README.md | 15 ++++++-------- .../spec/mdc-switch/classes/baseline.html | 20 ++++++++----------- .../spec/mdc-switch/mixins/density.html | 12 +++++------ .../spec/mdc-switch/mixins/thumb-color.html | 20 ++++++++----------- .../spec/mdc-switch/mixins/track-color.html | 20 ++++++++----------- 5 files changed, 35 insertions(+), 52 deletions(-) diff --git a/packages/mdc-switch/README.md b/packages/mdc-switch/README.md index 62bad8023c6..695e3f60c82 100644 --- a/packages/mdc-switch/README.md +++ b/packages/mdc-switch/README.md @@ -42,9 +42,8 @@ npm install @material/switch
-
- -
+
+
@@ -78,9 +77,8 @@ Add the `mdc-switch--disabled` class to the `mdc-switch` element, and the `disab
-
- -
+
+
@@ -94,9 +92,8 @@ Add the `mdc-switch--checked` class to the `mdc-switch` element, and the `checke
-
- -
+
+
diff --git a/test/screenshot/spec/mdc-switch/classes/baseline.html b/test/screenshot/spec/mdc-switch/classes/baseline.html index dd59da25128..61d75fc76e4 100644 --- a/test/screenshot/spec/mdc-switch/classes/baseline.html +++ b/test/screenshot/spec/mdc-switch/classes/baseline.html @@ -46,9 +46,8 @@
-
- -
+
+
@@ -58,9 +57,8 @@
-
- -
+
+
@@ -70,9 +68,8 @@
-
- -
+
+
@@ -82,9 +79,8 @@
-
- -
+
+
diff --git a/test/screenshot/spec/mdc-switch/mixins/density.html b/test/screenshot/spec/mdc-switch/mixins/density.html index 6052b551e69..3908d2f14d4 100644 --- a/test/screenshot/spec/mdc-switch/mixins/density.html +++ b/test/screenshot/spec/mdc-switch/mixins/density.html @@ -47,10 +47,9 @@
-
- -
+
+
@@ -60,9 +59,8 @@
-
- -
+
+
diff --git a/test/screenshot/spec/mdc-switch/mixins/thumb-color.html b/test/screenshot/spec/mdc-switch/mixins/thumb-color.html index 36abbb21a8c..5d1815f9e92 100644 --- a/test/screenshot/spec/mdc-switch/mixins/thumb-color.html +++ b/test/screenshot/spec/mdc-switch/mixins/thumb-color.html @@ -46,9 +46,8 @@
-
- -
+
+
@@ -58,9 +57,8 @@
-
- -
+
+
@@ -70,9 +68,8 @@
-
- -
+
+
@@ -82,9 +79,8 @@
-
- -
+
+
diff --git a/test/screenshot/spec/mdc-switch/mixins/track-color.html b/test/screenshot/spec/mdc-switch/mixins/track-color.html index db1f94f2ba4..511624df772 100644 --- a/test/screenshot/spec/mdc-switch/mixins/track-color.html +++ b/test/screenshot/spec/mdc-switch/mixins/track-color.html @@ -46,9 +46,8 @@
-
- -
+
+
@@ -58,9 +57,8 @@
-
- -
+
+
@@ -70,9 +68,8 @@
-
- -
+
+
@@ -82,9 +79,8 @@
-
- -
+
+