-
Notifications
You must be signed in to change notification settings - Fork 25
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): Handle zoom appropriately #338
Conversation
Preview: https://chatbot-pr-chatbot-338.surge.sh A11y report: https://chatbot-pr-chatbot-338-a11y.surge.sh |
28da006
to
2e0e521
Compare
Allows entire chatbot to scroll like a normal website when zoom is high. Hides jump links since they won't work. Also adds responsive styles to chatbot on docked and overlay.
2e0e521
to
5a7f1c3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good to me!
// 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-right: 0px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: rather than padding right, I think you should use padding-inline-start to maintain right to left language support.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only one nit
🎉 This PR is included in version 2.1.0-prerelease.23 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Allows entire chatbot to scroll like a normal website when zoom is high. Hides jump links since they won't work. Also adds responsive styles to chatbot on docked and overlay.
One example is here: https://chatbot-pr-chatbot-338.surge.sh/patternfly-ai/chatbot/overview/demo/basic-chatbot/; go to 150% or 200%.