Skip to content

Commit d59e1e5

Browse files
committed
Adjust classname
1 parent 11796bc commit d59e1e5

6 files changed

Lines changed: 9 additions & 6 deletions

File tree

packages/module/src/ChatbotModal/ChatbotModal.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,10 @@
8989
position: absolute;
9090
}
9191

92-
.pf-chatbot__chatbot-modal-compact {
92+
// ============================================================================
93+
// Compact
94+
// ============================================================================
95+
.pf-chatbot__chatbot-modal.pf-m-compact {
9396
.pf-v6-c-modal-box__header {
9497
padding-block-end: 0;
9598
}

packages/module/src/ChatbotModal/ChatbotModal.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,6 @@ describe('ChatbotModal', () => {
5454
</ModalBody>
5555
</ChatbotModal>
5656
);
57-
expect(screen.getByTestId('modal')).toHaveClass('pf-chatbot__chatbot-modal-compact');
57+
expect(screen.getByTestId('modal')).toHaveClass('pf-m-compact');
5858
});
5959
});

packages/module/src/ChatbotModal/ChatbotModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export const ChatbotModal: React.FunctionComponent<ChatbotModalProps> = ({
3030
ouiaId="ChatbotModal"
3131
aria-labelledby="chatbot-modal-title"
3232
aria-describedby="chatbot-modal"
33-
className={`pf-chatbot__chatbot-modal pf-chatbot__chatbot-modal--${displayMode} ${isCompact ? 'pf-chatbot__chatbot-modal-compact' : ''} ${className}`}
33+
className={`pf-chatbot__chatbot-modal pf-chatbot__chatbot-modal--${displayMode} ${isCompact ? 'pf-m-compact' : ''} ${className}`}
3434
backdropClassName="pf-chatbot__chatbot-modal-backdrop"
3535
{...props}
3636
>

packages/module/src/CodeModal/CodeModal.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
height: inherit !important; // override shared modal so code editor works in full screen
8989
}
9090

91-
.pf-chatbot__code-modal.pf-chatbot__code-modal-compact {
91+
.pf-chatbot__code-modal.pf-m-compact {
9292
.pf-chatbot__code-modal-body {
9393
gap: var(--pf-t--global--spacer--md);
9494
}

packages/module/src/CodeModal/CodeModal.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ describe('ChatbotModal', () => {
1919
secondaryActionBtn="Cancel"
2020
></CodeModal>
2121
);
22-
expect(screen.getByRole('dialog')).toHaveClass('pf-chatbot__chatbot-modal-compact');
22+
expect(screen.getByRole('dialog')).toHaveClass('pf-m-compact');
2323
});
2424
});

packages/module/src/CodeModal/CodeModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export const CodeModal: React.FunctionComponent<CodeModalProps> = ({
9797
ouiaId="CodeModal"
9898
aria-labelledby="code-modal-title"
9999
aria-describedby="code-modal"
100-
className={`pf-chatbot__code-modal ${isCompact ? 'pf-chatbot__code-modal-compact' : ''} pf-chatbot__code-modal--${displayMode}`}
100+
className={`pf-chatbot__code-modal ${isCompact ? 'pf-m-compact' : ''} pf-chatbot__code-modal--${displayMode}`}
101101
displayMode={displayMode}
102102
isCompact={isCompact}
103103
>

0 commit comments

Comments
 (0)