Skip to content

Commit c3c667a

Browse files
authored
Fix floating button outline background color android issue (#2343)
1 parent a385954 commit c3c667a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/floatingButton/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,12 +123,14 @@ class FloatingButton extends PureComponent<FloatingButtonProps> {
123123
const bottom = this.isSecondaryVertical ? Spacings.s4 : bottomMargin || Spacings.s8;
124124
const left = this.isSecondaryHorizontal ? Spacings.s4 : undefined;
125125
const right = this.isSecondaryHorizontal ? 20 : undefined;
126+
const shadowStyle = !button?.outline && !button?.link && styles.shadow;
127+
const marginStyle = {marginTop: 16, marginBottom: bottom, marginLeft: left, marginRight: right};
126128

127129
return (
128130
<Button
129131
size={Button.sizes.large}
130132
flex={!!this.isSecondaryHorizontal}
131-
style={[styles.shadow, {marginTop: 16, marginBottom: bottom, marginLeft: left, marginRight: right}]}
133+
style={[shadowStyle, marginStyle]}
132134
testID={`${testID}.button`}
133135
{...button}
134136
/>

0 commit comments

Comments
 (0)