Skip to content
Open
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,12 @@
flex: 1;
overflow: visible;
height: 100%;
min-width: 0;
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.

}

.pf-chatbot__prompt-suggestion-title {
overflow-wrap: anywhere;
Comment on lines +37 to +38

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.

This is fine but just a nit - to avoid specificity issues in the future, since there is a var for this style, I would use the var and apply it to the card wrapper. --pf-v6-c-card__title-text--OverflowWrap: anywhere;

If you wanted to do that, looks like you could apply it to .pf-chatbot__prompt-suggestions > * above.

}
}

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