Skip to content

Commit

Permalink
allow customization of sendbox background and text color
Browse files Browse the repository at this point in the history
fixes #1573
  • Loading branch information
a-b-r-o-w-n committed Jan 10, 2019
1 parent d9808ca commit 933592a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/component/src/Styles/StyleSet/SendBox.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
export default function createSendBoxStyle({
sendBoxBackground,
sendBoxHeight
}) {
return {
'& > .main': {
backgroundColor: 'White',
backgroundColor: sendBoxBackground,
borderTop: 'solid 1px #E6E6E6',
height: sendBoxHeight
}
Expand Down
4 changes: 3 additions & 1 deletion packages/component/src/Styles/StyleSet/SendBoxTextBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import {
} from '../Fonts';

export default function createSendBoxTextBoxStyle({
paddingRegular
paddingRegular,
sendBoxTextColor
}) {
return {
...primaryFont,
Expand All @@ -12,6 +13,7 @@ export default function createSendBoxTextBoxStyle({

'& > input': {
border: 0,
color: sendBoxTextColor,
fontFamily: 'inherit',
fontSize: 'inherit',
height: '100%',
Expand Down
2 changes: 2 additions & 0 deletions packages/component/src/Styles/defaultStyleSetOptions.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,13 @@ const DEFAULT_OPTIONS = {
hideSendBox: false,
hideUploadButton: false,
microphoneButtonColorOnDictate: '#F33',
sendBoxBackground: 'White',
sendBoxButtonColor: '#767676',
sendBoxButtonColorOnDisabled: '#CCC',
sendBoxButtonColorOnFocus: '#333',
sendBoxButtonColorOnHover: '#333',
sendBoxHeight: 40,
sendBoxTextColor: 'initial',

// Visually show spoken text
showSpokenText: false,
Expand Down

0 comments on commit 933592a

Please sign in to comment.