-
Notifications
You must be signed in to change notification settings - Fork 8
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
✨ Add big text teaser component #1890 #1913
Conversation
'Missing content!', | ||
subtitle: `Text block component.`, | ||
title: plainTitle || 'Missing title/content', | ||
subtitle: isBigText ? 'Text block component (BIG TEXT)' : 'Text block component', |
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.
✨🧹✨
} | ||
return true | ||
}), | ||
hidden: ({ parent }: TeaserDocument) => !parent.isBigText, | ||
}, |
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.
Can't we use the Rule.custom((value: PortableTextBlock[]) => validateCharCounterEditor(value, 600)).warning()
and
Rule.custom((value: PortableTextBlock[]) => validateCharCounterEditor(value, 600))
for text and bigText.. seems like no difference to me.
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.
one is a warning, the other is required
#1890