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

V3 update text block formatting #888

Merged
merged 2 commits into from
Nov 22, 2024
Merged

Conversation

idamand
Copy link

@idamand idamand commented Nov 22, 2024

Reformatted the textBlock on customer case page, so that the user is limited to only using textBlock in SplitSection. Added some new styling for the highlighted textBlock option, and commented out the old styling for framed textBlock, as we are not sure if its going to be a part of the design for the customer case or not. This can be removed or added back at a later date when there is a conclusion.

The new textBlock styling, highlighted textBlock on the top:
Screenshot 2024-11-22 at 08 47 34

TextBlock can only be added to splitsection in Sanity:
Screenshot 2024-11-22 at 08 49 19

Copy link

vercel bot commented Nov 22, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
variant-no ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 22, 2024 7:50am
variant-se-2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 22, 2024 7:50am

@@ -17,18 +17,26 @@ export default function TextSection({ section }: TextSectionProps) {
<div className={styles.wrapper}>
<div
className={
styles.content +
(section.textBlockType === "framed" ? ` ${styles.highlighted}` : "")
styles.content /* +
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
styles.content /* +
styles.content

Copy link
Contributor

Choose a reason for hiding this comment

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

ahh never mind! I guess this is for the frame/highlighted issue?

Copy link
Author

Choose a reason for hiding this comment

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

Yes! I noted in the description why it was commented out and that it can be removed or added back in at a later date so we have the history and reasoning available for later!

Copy link
Contributor

@anemne anemne left a comment

Choose a reason for hiding this comment

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

👌

@idamand idamand merged commit 8a344cd into v3 Nov 22, 2024
6 checks passed
@idamand idamand deleted the v3-update-text-block-formatting branch November 22, 2024 08:03
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