Skip to content

Commit

Permalink
Merge pull request #373 from rebeccaalpert/chatbot-html
Browse files Browse the repository at this point in the history
fix(Chatbot): Remove html class
  • Loading branch information
nicolethoen authored Dec 17, 2024
2 parents 9d8b7be + 98fd307 commit 0271c22
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
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

0 comments on commit 0271c22

Please sign in to comment.