From 43509458310cfc4c0ca5091c8aa6a3bbcabf6f2c Mon Sep 17 00:00:00 2001 From: Aaryan Khandelwal Date: Thu, 9 Jan 2025 16:13:12 +0530 Subject: [PATCH] chore: update tiptap-task-item version and required css --- packages/editor/package.json | 2 +- packages/editor/src/styles/editor.css | 6 +++--- yarn.lock | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/editor/package.json b/packages/editor/package.json index 891cd5f1c99..aef0b79bcf1 100644 --- a/packages/editor/package.json +++ b/packages/editor/package.json @@ -48,7 +48,7 @@ "@tiptap/extension-list-item": "2.11.0", "@tiptap/extension-mention": "2.11.0", "@tiptap/extension-placeholder": "2.11.0", - "@tiptap/extension-task-item": "2.10.4", + "@tiptap/extension-task-item": "2.11.0", "@tiptap/extension-task-list": "2.11.0", "@tiptap/extension-text-align": "2.11.0", "@tiptap/extension-text-style": "2.11.0", diff --git a/packages/editor/src/styles/editor.css b/packages/editor/src/styles/editor.css index e234f87cf86..e263431f6f2 100644 --- a/packages/editor/src/styles/editor.css +++ b/packages/editor/src/styles/editor.css @@ -119,13 +119,13 @@ ul[data-type="taskList"] li > label input[type="checkbox"] { pointer-events: none; } -ul[data-type="taskList"] li > label input[type="checkbox"][checked] { +ul[data-type="taskList"] li > label input[type="checkbox"]:checked { background-color: rgba(var(--color-primary-100)) !important; border-color: rgba(var(--color-primary-100)) !important; color: white !important; } -ul[data-type="taskList"] li > label input[type="checkbox"][checked]:hover { +ul[data-type="taskList"] li > label input[type="checkbox"]:checked:hover { background-color: rgba(var(--color-primary-300)) !important; border-color: rgba(var(--color-primary-300)) !important; } @@ -174,7 +174,7 @@ ul[data-type="taskList"] li > label input[type="checkbox"] { clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%); } - &[checked]::before { + &:checked::before { transform: scale(1) translate(-50%, -50%); } } diff --git a/yarn.lock b/yarn.lock index 67e6b2b1f82..3a69fe7332c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3546,10 +3546,10 @@ resolved "https://registry.yarnpkg.com/@tiptap/extension-strike/-/extension-strike-2.11.0.tgz#8507cfb501f4950d869f8ddd1adb47b66680765f" integrity sha512-71i2IZT58kY2ohlhyO+ucyAioNNCkNkuPkrVERc9lXhmcCKOff5y6ekDHQHO2jNjnejkVE5ibyDO3Z7RUXjh1A== -"@tiptap/extension-task-item@2.10.4": - version "2.10.4" - resolved "https://registry.yarnpkg.com/@tiptap/extension-task-item/-/extension-task-item-2.10.4.tgz#afc59e1632db1d7d1d8c2ff4e897a638337a949f" - integrity sha512-ucKGXdHdHCBanIJTB/nhmQ3iIL6BcSVKr7mN5BGEu6sSLYROflX7lmnMPVIRcTKJz+FGJeR6AqPFVagZAXVkGQ== +"@tiptap/extension-task-item@2.11.0": + version "2.11.0" + resolved "https://registry.yarnpkg.com/@tiptap/extension-task-item/-/extension-task-item-2.11.0.tgz#ff97f10bf39d6c27fd3f3f1ee3987d7015304c11" + integrity sha512-qu6VuRc8qF80Bwr82CItFcrKtC67LJkwpxESLEIi42zWZ5sXF/3DJEPPS/4Kk+nAc9UCBoEMFAULibPq7rRl/w== "@tiptap/extension-task-list@2.11.0": version "2.11.0"