Skip to content
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

fix(Chatbot): Remove html class #373

Merged
merged 1 commit into from
Dec 17, 2024
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
10 changes: 0 additions & 10 deletions packages/module/src/Chatbot/Chatbot.scss
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,6 @@
}
}

html.pf-chatbot-allow--docked {
padding-inline-start: 480px;

// 30rem is the width of the docked chatbot
// if the screen is smaller, we want to be 100%
@media screen and (max-width: 30rem) {
padding-inline-start: 0px;
}
}

// ============================================================================
// Chatbot Display Mode - Fullscreen
// ============================================================================
Expand Down
9 changes: 0 additions & 9 deletions packages/module/src/Chatbot/Chatbot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,6 @@ const ChatbotBase: React.FunctionComponent<ChatbotProps> = ({
ariaLabel,
...props
}: ChatbotProps) => {
// Configure docked mode
React.useEffect(() => {
if (displayMode === ChatbotDisplayMode.docked) {
document.documentElement.classList.add('pf-chatbot-allow--docked');
} else {
document.documentElement.classList.remove('pf-chatbot-allow--docked');
}
}, [displayMode]);

// Configure animations
const motionChatbot = {
visible: { opacity: 1, y: 0 },
Expand Down
Loading