botframework-webchat-component
Version:
React component of botframework-webchat
25 lines (21 loc) • 508 B
JavaScript
export default function createUploadButtonStyle({
sendBoxButtonColor,
sendBoxButtonColorOnFocus,
sendBoxButtonColorOnHover,
sendBoxHeight,
subtle
}) {
return {
// We use the sendBoxHeight, so the button looks square
width: sendBoxHeight,
'& > .icon > svg': {
fill: sendBoxButtonColor || subtle
},
'& > input:hover + .icon > svg': {
fill: sendBoxButtonColorOnHover
},
'& > input:focus + .icon > svg': {
fill: sendBoxButtonColorOnFocus
}
};
}