From fd06f28253a75399ac3af2cb6fb446aa6ebb99bc Mon Sep 17 00:00:00 2001 From: Yosi Levy <37745463+yosilevy@users.noreply.github.com> Date: Wed, 14 Feb 2024 10:57:10 +0200 Subject: [PATCH] Patch simple tooltip for RTL (#19767) --- ...onents-simple-tooltip-npm-8.0.0-77591f2e0c.patch | 13 +++++++++++++ package.json | 2 +- yarn.lock | 11 ++++++++++- 3 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 .yarn/patches/@lrnwebcomponents-simple-tooltip-npm-8.0.0-77591f2e0c.patch diff --git a/.yarn/patches/@lrnwebcomponents-simple-tooltip-npm-8.0.0-77591f2e0c.patch b/.yarn/patches/@lrnwebcomponents-simple-tooltip-npm-8.0.0-77591f2e0c.patch new file mode 100644 index 000000000000..9b177dc6143e --- /dev/null +++ b/.yarn/patches/@lrnwebcomponents-simple-tooltip-npm-8.0.0-77591f2e0c.patch @@ -0,0 +1,13 @@ +diff --git a/simple-tooltip.js b/simple-tooltip.js +index 78a87f6a223925f0e29fbedb268c85a142ec6985..3d686dd6a3d5a93342b4b01408089fc316b408ca 100644 +--- a/simple-tooltip.js ++++ b/simple-tooltip.js +@@ -195,6 +195,8 @@ class SimpleTooltip extends LitElement { + .hidden { + position: absolute; + left: -10000px; ++ inset-inline-start: -10000px; ++ inset-inline-end: initial; + top: auto; + width: 1px; + height: 1px; diff --git a/package.json b/package.json index 87ef1cc67052..1b7775ceb0d2 100644 --- a/package.json +++ b/package.json @@ -54,7 +54,7 @@ "@lit-labs/motion": "1.0.7", "@lit-labs/observers": "2.0.2", "@lit-labs/virtualizer": "2.0.12", - "@lrnwebcomponents/simple-tooltip": "8.0.0", + "@lrnwebcomponents/simple-tooltip": "patch:@lrnwebcomponents/simple-tooltip@npm%3A8.0.0#~/.yarn/patches/@lrnwebcomponents-simple-tooltip-npm-8.0.0-77591f2e0c.patch", "@material/chips": "=14.0.0-canary.53b3cad2f.0", "@material/data-table": "=14.0.0-canary.53b3cad2f.0", "@material/mwc-base": "0.27.0", diff --git a/yarn.lock b/yarn.lock index df0718f03509..da1c028eabdb 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2167,6 +2167,15 @@ __metadata: languageName: node linkType: hard +"@lrnwebcomponents/simple-tooltip@patch:@lrnwebcomponents/simple-tooltip@npm%3A8.0.0#~/.yarn/patches/@lrnwebcomponents-simple-tooltip-npm-8.0.0-77591f2e0c.patch": + version: 8.0.0 + resolution: "@lrnwebcomponents/simple-tooltip@patch:@lrnwebcomponents/simple-tooltip@npm%3A8.0.0#~/.yarn/patches/@lrnwebcomponents-simple-tooltip-npm-8.0.0-77591f2e0c.patch::version=8.0.0&hash=91f01a" + dependencies: + lit: "npm:^3.1.0" + checksum: 10/25e2ec2e7379004784ede67419da99a57c2aeb5f7c5747069682b0ca4f28a4e4aaec03a6946d17b33b85407b625d9747af7d0e576f2f1172f8b57090f425fbf9 + languageName: node + linkType: hard + "@material/animation@npm:14.0.0-canary.53b3cad2f.0": version: 14.0.0-canary.53b3cad2f.0 resolution: "@material/animation@npm:14.0.0-canary.53b3cad2f.0" @@ -9472,7 +9481,7 @@ __metadata: "@lit-labs/observers": "npm:2.0.2" "@lit-labs/virtualizer": "npm:2.0.12" "@lokalise/node-api": "npm:12.1.0" - "@lrnwebcomponents/simple-tooltip": "npm:8.0.0" + "@lrnwebcomponents/simple-tooltip": "patch:@lrnwebcomponents/simple-tooltip@npm%3A8.0.0#~/.yarn/patches/@lrnwebcomponents-simple-tooltip-npm-8.0.0-77591f2e0c.patch" "@material/chips": "npm:=14.0.0-canary.53b3cad2f.0" "@material/data-table": "npm:=14.0.0-canary.53b3cad2f.0" "@material/mwc-base": "npm:0.27.0"