-
Notifications
You must be signed in to change notification settings - Fork 4
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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@@ -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 /* + |
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.
styles.content /* + | |
styles.content |
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.
ahh never mind! I guess this is for the frame/highlighted issue?
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.
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!
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.
👌
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:
TextBlock can only be added to splitsection in Sanity: