Skip to content

Commit

Permalink
update utility classnames and snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolethoen committed Jul 9, 2024
1 parent 177581e commit f5cc039
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,24 @@ interface AssistantMessageEntryProps {
}

export const AssistantMessageEntry = ({ children, options, icon: IconComponent = RobotIcon }: PropsWithChildren<AssistantMessageEntryProps>) => (
<div className="pf-v5-u-mb-md">
<div className="pf-v6-u-mb-md">
<Split>
<SplitItem>
<Icon size="lg" className="pf-v5-u-mr-sm pf-v5-u-pt-md">
<Icon size="lg" className="pf-v6-u-mr-sm pf-v6-u-pt-md">
<IconComponent />
</Icon>
</SplitItem>
<SplitItem className="pf-v5-u-background-color-200">
<TextContent className="pf-v5-u-font-size-sm">
<SplitItem className="pf-v6-u-background-color-200">
<TextContent className="pf-v6-u-font-size-sm">
{children}
</TextContent>
</SplitItem>
</Split>
{options ? (
<Split>
<SplitItem className="pf-v5-u-ml-xl pf-v5-u-mt-md">
<SplitItem className="pf-v6-u-ml-xl pf-v6-u-mt-md">
{options.map((option, index) => (
<Label key={index} className="pf-v5-u-m-xs" {...option.props}>
<Label key={index} className="pf-v6-u-m-xs" {...option.props}>
{option.title}
</Label>
))}
Expand Down
4 changes: 2 additions & 2 deletions packages/module/src/LoadingMessage/LoadingMessage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ export interface LoadingMessageProps {
export const LoadingMessage: React.FunctionComponent<LoadingMessageProps> = ({ icon: IconComponent = RobotIcon }) => (
<Split>
<SplitItem>
<Icon size="lg" className="pf-v5-u-mr-sm pf-v5-u-pt-md" data-test-id="assistant-loading-icon">
<Icon size="lg" className="pf-v6-u-mr-sm pf-v6-u-pt-md" data-test-id="assistant-loading-icon">
<IconComponent />
</Icon>
</SplitItem>
<SplitItem className="pf-u-background-color-200" >
<div className="pf-v5-u-display-flex pf-u-align-items-center" data-test-id="assistant-loading-dots">
<div className="pf-v6-u-display-flex pf-u-align-items-center" data-test-id="assistant-loading-dots">
<div>.</div>
<div>.</div>
<div>.</div>
Expand Down
6 changes: 3 additions & 3 deletions packages/module/src/UserMessageEntry/UserMessageEntry.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ interface UserMessageEntryProps {

const UserMessageEntry = ({ children, icon: IconComponent = OutlinedUserIcon }: PropsWithChildren<UserMessageEntryProps>) => (
<>
<Split className="pf-v5-u-mb-md pf-v5-u-align-items-flex-start pf-v5-u-justify-content-flex-end">
<Split className="pf-v6-u-mb-md pf-v6-u-align-items-flex-start pf-v6-u-justify-content-flex-end">
<SplitItem>
<TextContent className="pf-v5-u-color-300 pf-v5-u-font-size-sm">
<TextContent className="pf-v6-u-color-300 pf-v6-u-font-size-sm">
{children}
</TextContent>
</SplitItem>
<SplitItem>
<Icon size="lg" className="pf-v5-u-ml-sm pf-v5-u-pt-xs">
<Icon size="lg" className="pf-v6-u-ml-sm pf-v6-u-pt-xs">
<IconComponent />
</Icon>
</SplitItem>
Expand Down
4 changes: 2 additions & 2 deletions packages/module/src/VirtualAssistant/VirtualAssistant.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export const VirtualAssistant: React.FunctionComponent<VirtualAssistantProps> =
<CardHeader actions={actions ? {
actions
} : undefined}>
<CardTitle className="pf-v5-u-font-size-xl" data-test-id="assistant-title">
<CardTitle className="pf-v6-u-font-size-xl" data-test-id="assistant-title">
{title}
</CardTitle>
</CardHeader>
Expand All @@ -82,7 +82,7 @@ export const VirtualAssistant: React.FunctionComponent<VirtualAssistantProps> =
data-test-id="assistant-text-input"
/>
<InputGroupText>
<Button isDisabled={isSendButtonDisabled} data-test-id="assistant-send-button" aria-label="Virtual assistant's message" variant="plain" className="pf-v5-u-px-sm" onClick={onSendMessage ? () => {
<Button isDisabled={isSendButtonDisabled} data-test-id="assistant-send-button" aria-label="Virtual assistant's message" variant="plain" className="pf-v6-u-px-sm" onClick={onSendMessage ? () => {
onSendMessage(message);
} : undefined}>
<PaperPlaneIcon />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ exports[`VirtualAssistant should render assistant 1`] = `
class="pf-v6-c-card__title"
>
<div
class="pf-v6-c-card__title-text pf-v5-u-font-size-xl"
class="pf-v6-c-card__title-text pf-v6-u-font-size-xl"
data-test-id="assistant-title"
>
Virtual Assistant
Expand Down Expand Up @@ -56,7 +56,7 @@ exports[`VirtualAssistant should render assistant 1`] = `
<button
aria-disabled="false"
aria-label="Virtual assistant's message"
class="pf-v6-c-button pf-m-plain pf-v5-u-px-sm"
class="pf-v6-c-button pf-m-plain pf-v6-u-px-sm"
data-ouia-component-id="OUIA-Generated-Button-plain-1"
data-ouia-component-type="PF6/Button"
data-ouia-safe="true"
Expand Down

0 comments on commit f5cc039

Please sign in to comment.