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

refactor: Consolidate rich text into component + update styles #2503

Merged
merged 1 commit into from
Dec 1, 2023

Conversation

ianjon3s
Copy link
Contributor

@ianjon3s ianjon3s commented Nov 30, 2023

What does this PR do?

Currently the styling for rich text sits in a standalone CSS file, this PR brings the styles into the RichTextInput.tsx component and makes small updates to tidy up styling in the editor and public interface.

Things to point out

  • The CSS for rich text was also imported into the component RichTextImage.tsx, however I found no references to this styles in either the code or the output (example below), so I've not imported the new RichContentContainer styled div to this component.
  • The styles for .passport remain applied as a CSS class, as there are programatic ways this is applied in the component that I were not able to unpick. Happy to revisit this if it is deemed worthy to refactor.

Editor example:
https://2503.planx.pizza/lambeth/content-example

Public example:
https://2503.planx.pizza/lambeth/content-example/preview?analytics=false

Copy link

github-actions bot commented Nov 30, 2023

Removed vultr server and associated DNS entries

@ianjon3s ianjon3s requested a review from DafyddLlyr November 30, 2023 16:15
@ianjon3s ianjon3s marked this pull request as ready for review November 30, 2023 16:15
Copy link
Contributor

@DafyddLlyr DafyddLlyr left a comment

Choose a reason for hiding this comment

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

Perfect - thanks for picking this one up 👍

All looks and works as expected!

@ianjon3s ianjon3s merged commit c45d3ac into main Dec 1, 2023
12 checks passed
@ianjon3s ianjon3s deleted the ian/editor-rich-text-update branch December 1, 2023 11:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants