Skip to content

Added botAvatarBackgroundColor and userAvatarBackgroundColor to the default style options#2384

Merged
corinagum merged 5 commits intomicrosoft:masterfrom
tdurnford:2380
Sep 11, 2019
Merged

Added botAvatarBackgroundColor and userAvatarBackgroundColor to the default style options#2384
corinagum merged 5 commits intomicrosoft:masterfrom
tdurnford:2380

Conversation

@tdurnford
Copy link
Copy Markdown
Contributor

@tdurnford tdurnford commented Sep 6, 2019

Fixes #2380
Fixes #2306

Changelog Entry

  • Fix #2380. Added botAvatarBackgroundColor and userAvatarBackgroundColor to the default style options, by @tdurnford in PR #2384

Description

Added botAvatarBackgroundColor and userAvatarBackgroundColor to the default style options. When either is null respectively the avatar background color is the accent color.

const styleOptions = {
  botAvatarBackgroundColor: 'red',
  botAvatarInitials: 'B',
  userAvatarBackgroundColor: 'blue',
  userAvatarInitials: 'TJ',

  suggestedActionBorderWidth: 4,
  suggestedActionBorderColor: 'silver',
  suggestedActionBorderStyle: 'double',

  suggestedActionDisabledBorderWidth: 1,
  suggestedActionDisabledBorderColor: 'blue',
  suggestedActionDisabledBorderStyle: 'dashed'
};

image


  • Testing Added

Copy link
Copy Markdown
Contributor

@compulim compulim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

Comment thread packages/component/src/Styles/defaultStyleOptions.js Outdated
@tdurnford tdurnford changed the title Added botAvatarBackgroundColor and userAvatarBackgroundColor to the default style options [Do not merge] Added botAvatarBackgroundColor and userAvatarBackgroundColor to the default style options Sep 6, 2019
Comment thread samples/01.a.getting-started-full-bundle/index.html Outdated
@tdurnford tdurnford changed the title [Do not merge] Added botAvatarBackgroundColor and userAvatarBackgroundColor to the default style options Added botAvatarBackgroundColor and userAvatarBackgroundColor to the default style options Sep 9, 2019
@corinagum
Copy link
Copy Markdown
Contributor

@compulim ping, did all your change requests make it in?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BOT Avatar has a blue circle background No option to change font size in defaultStyleOptions.js

3 participants