-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
BOT Avatar has a blue circle background #2380
Comments
The avatar background color is set to the Default Style Options {
...
// Avatar
avatarSize: 40,
+ botAvatarBackgroundColor: null,
botAvatarImage: '',
botAvatarInitials: '',
+ userAvatarBackgroundColor: null,
userAvatarImage: '',
userAvatarInitials: '',
...
} Avatar Style Set export default function createAvatarStyle({ accent, avatarSize, botAvatarBackgroundColor primaryFont, userAvatarBackgroundColor}) {
return {
alignItems: 'center',
- backgroundColor: accent,
borderRadius: '50%',
color: 'White',
display: 'flex',
fontFamily: primaryFont,
height: avatarSize,
justifyContent: 'center',
overflow: 'hidden',
position: 'relative',
width: avatarSize,
+ '&.from-user': {
+ backgroundColor: userAvatarBackgroundColor || accent
+ },
+ '&:not(.from-user)': {
+ backgroundColor: botAvatarBackgroundColor || accent
+ },
'& > .image': {
left: 0,
position: 'absolute',
top: 0
}
};
} @compulim @corinagum Thoughts? |
Seems fine to me. My only hesitation is about the potential conflict with |
Here is a workaround I have been using. This should suffice until the next release. This demos a blue background in web chat with a black background for the avatars and green/red text overlay (if you are including initials, for example) depending on the user. let styleSet = createStyleSet({
backgroundColor: '#19194d',
botAvatarInitials: 'BB',
userAvatarInitials: 'NB',
});
styleSet.avatar = {
...styleSet.avatar,
'.from-user': {
'color': 'Green',
'background-color': 'black'
},
':not(from-user)': {
'color': 'Red',
'background-color': 'black'
}
} |
@corinagum : When is the next release ? |
Next release is end of October. :) If you need these changes immediately, please see our documentation on pointing to our MyGet feed for latest bits. |
The avatar image is not taking full background and showing blue circle line around. Not looking good. Though the image is having all white background.
Screenshots
Version
Describe the bug
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Additional context
[Bug]
The text was updated successfully, but these errors were encountered: