-
-
Notifications
You must be signed in to change notification settings - Fork 12
fix!: update messageCanvas styling #163
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
Conversation
BREAKING CHANGE: Changes in classnames.
| ref={ref} | ||
| > | ||
| <Box className="rustic-sender-info"> | ||
| <Stack className="rustic-sender-info"> |
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.
You could remove the classname if you use Stack
| <Stack className="rustic-sender-info"> | |
| <Stack direction="row" alignItems="center" spacing={1}> |
| <Typography variant="caption" color="textSecondary"> | ||
| <Typography | ||
| variant="caption" | ||
| color="textSecondary" |
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.
| color="textSecondary" | |
| color="text.secondary" |
| margin-left: 16px; | ||
| align-self: flex-end; |
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.
If its aligned to flex-end, what does adding margin-left help with? should we be setting margin-right instead?
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.
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.
I think we could do without the align-self styling.
|
Design has a border around the profile icon. Do we want to add it in MessageCanvas? LGTM otherwise. |
shouldnt that be handled through the styling for the profile component ? |
This is what I was thinking. We could update the stories in a follow up |
yes, please update agent profile icon in storybook in a follow-up |


BREAKING CHANGE: Changes in classnames.
Changes
rustic-message-actions-containeris nowrustic-message-containerrustic-message-actions-containeris now applied to the message actions, as before it was added to the message contentThe message actions on mobile in the design are accessed by clicking/holding the message and having a drawer menu appear. We don't have logic implemented for this yet, so I've moved the message actions to the bottom on mobile.
Screenshots
Design
Desktop
Mobile
Before
No hover
On hover
Message space no hover
Message space on hover
After
No hover
On hover
On hover mobile
Message space no hover
Message space on hover