-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[lexical-playground] Fix: tabs do not show strikethrough/underline #6811
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
size-limit report 📦
|
packages/lexical-playground/src/themes/PlaygroundEditorTheme.css
Outdated
Show resolved
Hide resolved
packages/lexical-playground/src/themes/PlaygroundEditorTheme.css
Outdated
Show resolved
Hide resolved
packages/lexical-playground/src/themes/PlaygroundEditorTheme.css
Outdated
Show resolved
Hide resolved
i took another approach to fixing this.., i just jumped into it without thinking and was in an hurry to fix it... I had even forgotten both underline and strikethrough existed... the reason I used |
no need for them actually. 😅 silly me.. i was using |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The e2e test suite is failing, both in CI here and I can reproduce the failures locally.
5 failed
[chromium] › packages/lexical-playground/__tests__/e2e/CodeBlock.spec.mjs:319:3 › CodeBlock › Can maintain indent when creating new lines
[chromium] › packages/lexical-playground/__tests__/e2e/CodeBlock.spec.mjs:407:3 › CodeBlock › Can (un)indent multiple lines at once
[chromium] › packages/lexical-playground/__tests__/e2e/CodeBlock.spec.mjs:891:3 › CodeBlock › When pressing CMD/Ctrl + Left, CMD/Ctrl + Right, the cursor should go to the start of the code
[chromium] › packages/lexical-playground/__tests__/e2e/Tab.spec.mjs:22:3 › Tab › can tab + IME ─
[chromium] › packages/lexical-playground/__tests__/e2e/Tab.spec.mjs:92:3 › Tab › can tab inside code block #4399
21 skipped
478 passed (6.4m)
You can run these suites locally by having npm run start
in one terminal and then in another:
npm run test-e2e-chromium
To run a particular test or suite you can specify another argument, e.g.
npm run test-e2e-chromium packages/lexical-playground/__tests__/e2e/CodeBlock.spec.mjs:319:3
I think most of these tests failures probably just mean that you have to change the tests to expect the tabNode class, but they need to be fixed nonetheless. |
ok, thank you... will take a look at them |
i think its good to go now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other than the circular dependency I think this is good enough, there are still some slight difference in how the text is rendered which are clear especially when a background color is added but that's just a matter of tweaking the CSS accordingly. Since this CSS is in the playground and not part of the package itself I think that it's acceptable.
This PR
Co-authored-by: Bob Ippolito <bob@redivi.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are still some issues with the integrity check, maybe because package-lock.json is still changed unnecessarily, or maybe because there is still a dependency on @lexical/utils in LexicalTabNode.ts. Once you fix it, npm run ci-check
should pass locally as well.
Description
Made some changes to
.PlaygroundEditorTheme__textStrikethrough
to show strikethroughs on tabsCloses #6808
Before
After selecting the whole text, it shows the strikethrough is present
After
The slight change in css makes the strikethrough visible