botframework-webchat-component
Version:
React component of botframework-webchat
27 lines (22 loc) • 592 B
text/typescript
import { StrictStyleOptions } from 'botframework-webchat-api';
export default function createUploadButtonStyle({
sendBoxButtonColor,
sendBoxButtonColorOnFocus,
sendBoxButtonColorOnHover,
sendBoxHeight,
subtle
}: StrictStyleOptions) {
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
}
};
}