stream-chat-react-native icon indicating copy to clipboard operation
stream-chat-react-native copied to clipboard

Being able to customize the color of the <Close /> button in the <ImageUploadPreview />

Open neopit opened this issue 2 years ago • 2 comments

Motivation We want to be able to change/customized the colour of the <Close /> icon in the ImageUploadPreview Currently, we can change the colour via the Theming: colours: { black: 'red'} however changing the black attribute affects the entire theming especially the colour of the text.

The backgroundColor can be changed via this (see below) but we cannot change the color of the icon itself messageInput: { imageUploadPreview: { dismiss: { backgroundColor: '#FFFFFF' } } }

Proposed solution Provide an extra parameter to the theming to messageInput.imageUploadPreview.dismiss For example pathFill or color

messageInput: {
  imageUploadPreview: {
    dismiss: {
      backgroundColor: '#FFFFFF'
      pathFill: 'red'. 
    }
  }
}

Screen Shot 2022-05-31 at 3 24 33 PM

and path this new colour to the icon <Close pathFill={dismiss.pathFill} />

Acceptance Criteria Be able to customize the color of <Close /> button use in the ImageUploadPreview

neopit avatar May 31 '22 22:05 neopit

Hey, @neopit thanks for bringing this up. It looks like you are correct and there isn't a way you can use to change the color of the dismiss cross icon. We have put this into our backlog and will get back to you with this feature soon.

khushal87 avatar Jun 01 '22 06:06 khushal87

Hey team! Please add your planning poker estimate with ZenHub @khushal87 @madsroskar @santhoshvai @vishalnarkhede

vanGalilea avatar Jul 05 '22 08:07 vanGalilea