From d52aad6ec1d5e4d2e1a5fabbb73f73410bbf7ef8 Mon Sep 17 00:00:00 2001 From: Steven Spriggs Date: Sun, 12 May 2024 02:22:05 -0400 Subject: [PATCH] fix(cta): add lightdom css (#1495) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * docs: draft release notes * fix(tabs): improve long tab content with container queries (#1411) * fix(tabs): improve long tab content with container queries * chore(tabs): add changeset * docs(tabs): update long tab content * docs: update .changeset/silver-hornets-cry.md --------- Co-authored-by: Benny Powers - עם ישראל חי! * fix(cta): add lightdom css * chore(cta): add changeset * fix(cta): lint * chore: remove unexpected changeset * fix(cta): include `-shim` extension to denote optional file * chore(cta): lint * chore(call-to-action): update changeset --------- Co-authored-by: Benny Powers Co-authored-by: Benny Powers - עם ישראל חי! --- .changeset/rh-cta-lightdom-shim.md | 5 + docs/_includes/layout-base.njk | 1 + .../demo/color-context-with-lightdom-css.html | 15 ++ elements/rh-cta/demo/rh-cta.html | 1 - elements/rh-cta/demo/right-to-left.html | 1 - elements/rh-cta/rh-cta-lightdom-shim.css | 208 ++++++++++++++++++ 6 files changed, 229 insertions(+), 2 deletions(-) create mode 100644 .changeset/rh-cta-lightdom-shim.md create mode 100644 elements/rh-cta/demo/color-context-with-lightdom-css.html create mode 100644 elements/rh-cta/rh-cta-lightdom-shim.css diff --git a/.changeset/rh-cta-lightdom-shim.md b/.changeset/rh-cta-lightdom-shim.md new file mode 100644 index 0000000000..e44cf02c78 --- /dev/null +++ b/.changeset/rh-cta-lightdom-shim.md @@ -0,0 +1,5 @@ +--- +"@rhds/elements": minor +--- + +``: Added `rh-cta-lightdom-shim.css` as an optional file to help reduce layout shift before element is defined, where declarative shadow DOM is not an option. diff --git a/docs/_includes/layout-base.njk b/docs/_includes/layout-base.njk index 32f1f44865..ed6a2f9847 100644 --- a/docs/_includes/layout-base.njk +++ b/docs/_includes/layout-base.njk @@ -26,6 +26,7 @@ + {% sassFile false %} diff --git a/elements/rh-cta/demo/color-context-with-lightdom-css.html b/elements/rh-cta/demo/color-context-with-lightdom-css.html new file mode 100644 index 0000000000..75bc09c679 --- /dev/null +++ b/elements/rh-cta/demo/color-context-with-lightdom-css.html @@ -0,0 +1,15 @@ + + Default + Default Video + Primary + Video + Secondary + Brick + Brick Video + + + + diff --git a/elements/rh-cta/demo/rh-cta.html b/elements/rh-cta/demo/rh-cta.html index 848d5a6659..1aac713fd4 100644 --- a/elements/rh-cta/demo/rh-cta.html +++ b/elements/rh-cta/demo/rh-cta.html @@ -2,7 +2,6 @@ Call to Action - diff --git a/elements/rh-cta/demo/right-to-left.html b/elements/rh-cta/demo/right-to-left.html index ddb655c615..f267855e2d 100644 --- a/elements/rh-cta/demo/right-to-left.html +++ b/elements/rh-cta/demo/right-to-left.html @@ -89,7 +89,6 @@

Deep Shadow RTL

-