-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Added richCardsWrapTitle to defaultStyleOptions #2115
Conversation
Let's get a test on this one :) |
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.
Although I agree we should wrap the title, ellipsis looks too ugly today, are there any user asks for this?
I think wrapping the title will make the rich card looks pretty. Should we turn this on by default despite it is a breaking change?
Also, keep in mind that we want to move rich card away from Adaptive Card due to layout problems, enable rich card in minimal bundle, and enable more styling options for rich card.
packages/bundle/src/adaptiveCards/Attachment/AdaptiveCardBuilder.ts
Outdated
Show resolved
Hide resolved
The Support Team has seen an increase in issues regarding the title not wrapping, especially around QnA Prompting. I believe the SDK is mapping the prompts to Hero Cards and is adding the text response as the card's title. More often than not, the text is too long and gets truncated. We've been telling clients to either move the title to the card's text attribute or map the QnA prompt to an Adaptive Card themselves. I'm torn on wrapping the title by default. I think it might be better to wait until we move Rich Cards away from using the Adaptive Card builder. |
After discussing offline:
|
Fixes #2046
Changelog Entry
Added richCardsWrapTitle to defaultStyleOptions, by @tdurnford, in PR #2115
Specific Changes
Added richCardsWrapTitle to defaultStyleOptions and added styleOptions as a parameter to the AdaptiveCardsBuilder and as a prop for the CommonCard component. Developers should be able to wrap the title attribute in Rich Cards by setting richCardsWrapTitle in styleOptions to true.