Skip to content

Commit 1f2a1a8

Browse files
committed
update styles
1 parent bd64115 commit 1f2a1a8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/breadcrumb.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,12 @@ const Breadcrumb = ({ flowDepth, entities, borderRadius, crumbsContainerStyle, c
6161
const triangleTailStyle = height ? { borderTopWidth: height / 2.0, borderBottomWidth: height / 2.0, borderLeftWidth: height / 2.0 } : {};
6262
const triangleHeadStyle = height ? { borderTopWidth: height / 2.0, borderBottomWidth: height / 2.0, borderLeftWidth: height / 2.0 } : {};
6363

64+
if (activeCrumbStyle && activeCrumbStyle.backgroundColor) {
65+
triangleTailStyle.borderTopColor = activeCrumbStyle.backgroundColor;
66+
triangleTailStyle.borderBottomColor = activeCrumbStyle.backgroundColor;
67+
triangleHeadStyle.borderColor = activeCrumbStyle.backgroundColor;
68+
}
69+
6470
return (
6571
<View
6672
style={[styles.crumbsContainerStyle, borderRadius ? { borderRadius } : {}, crumbsContainerStyle]}

0 commit comments

Comments
 (0)