Skip to content
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

Upgrade slate libraries; fix empty link element left hanging when hit enter at end of link #5186

Merged
merged 22 commits into from Nov 7, 2023

Conversation

tiberiuichim
Copy link
Contributor

I had to upgrade the slate library, as it introduces an editor.normalize() function that can cleanup the links.

There's one styling fix that needs to be done, the new slate lib triggers a :focus-visible and needs to be disabled with outline: 0px.

image

@netlify
Copy link

netlify bot commented Sep 14, 2023

Deploy Preview for volto ready!

Name Link
🔨 Latest commit 590849f
🔍 Latest deploy log https://app.netlify.com/sites/volto/deploys/654a54ed902dd40008aa408f
😎 Deploy Preview https://deploy-preview-5186--volto.netlify.app/upgrade-guide/index.html
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@tiberiuichim
Copy link
Contributor Author

tiberiuichim commented Sep 14, 2023

@iFlameing if you can, please take over this PR. Taking into consideration that I had to upgrade the slate lib, there may be unforeseen bugs or changes, so a bit of live testing wouldn't hurt.

@iFlameing
Copy link
Member

@tiberiuichim Now it is ready for review.

@@ -42,6 +42,15 @@
border-color: rgba(120, 192, 215, 0.75);
}

.block-editor-title,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isn't there a generic slate editor class? They all exhibit this behavior, let's keep this simple.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Turns out they do not! Maybe a change in the new one?

@sneridagh
Copy link
Member

@tiberiuichim what's the status of this one?

* main:
  Release 17.3.0
  Fix DatetimeWidget on FF, the button default if no type is set is sen… (#5343)
  Call applyBlockDefaults from addBlock/insertBlock, add initialValue() configuration option for blocks (#5320)
  A11y - Updated aria-labels for landmarks, added landmark for sidebar and plug skiplinks (#5290)
  (FIX): put padding so the text is not clipped (#5305)
  Add upgrade docs for users of `@kitconcept/volto-blocks-grid` addon (#5333)
  Add new multilingual acceptance tests with Seamless mode enabled (#5332)
  Fix reference to installation (#5328)
  Fix compare translations view (#5327)
  Release 17.2.0
  Fix to return correct results when loading the search block from a URL (#5298)
  Allow multiple path criteria (#5317)
@iFlameing
Copy link
Member

@sneridagh I will update the branch.

@iFlameing
Copy link
Member

@sneridagh I tested locally and cypress is working perfectly fine.

@sneridagh
Copy link
Member

I had to revert to use the last good known version of working slate-react

see
ianstormtaylor/slate#5516

@sneridagh
Copy link
Member

@stevepiercy added an upgrade notice, please take a look.

Copy link
Collaborator

@stevepiercy stevepiercy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just some grammar fixes.

docs/source/upgrade-guide/index.md Outdated Show resolved Hide resolved
docs/source/upgrade-guide/index.md Outdated Show resolved Hide resolved
docs/source/upgrade-guide/index.md Outdated Show resolved Hide resolved
docs/source/upgrade-guide/index.md Outdated Show resolved Hide resolved
Co-authored-by: Steve Piercy <web@stevepiercy.com>
@sneridagh sneridagh merged commit ce04d9b into main Nov 7, 2023
52 checks passed
@sneridagh sneridagh deleted the upgrade_slate branch November 7, 2023 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

None yet

4 participants