Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,15 @@
flex: 1;
overflow: visible;
height: 100%;
min-width: 0;
}

.pf-chatbot__prompt-suggestion-body {
overflow-wrap: anywhere;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I would only apply it to the whole element like this if you're 100% the children (always cards I'm assuming?) only have text. Otherwise I would target the text parts of the children specifically. Applying overflow-wrap: anywhere; on containers with lots of children and layouts can have adverse effects.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Moved to body; thank you!

}

.pf-chatbot__prompt-suggestion-title {
--pf-v6-c-card__title-text--OverflowWrap: anywhere;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,11 @@ export const ChatbotWelcomePrompt: FunctionComponent<ChatbotWelcomePromptProps>
selectableActionAriaLabelledby: `welcome-prompt-title-${index}`
}}
>
<CardTitle id={`welcome-prompt-title-${index}`}>{prompt.title}</CardTitle>
<CardTitle className="pf-chatbot__prompt-suggestion-title" id={`welcome-prompt-title-${index}`}>
{prompt.title}
</CardTitle>
</CardHeader>
{prompt.message && <CardBody>{prompt.message}</CardBody>}
{prompt.message && <CardBody className="pf-chatbot__prompt-suggestion-body">{prompt.message}</CardBody>}
</Card>
))}
</div>
Expand Down
Loading