Skip to content

Commit bc2a747

Browse files
author
Luke Bowerman
authored
fix(Accordion): indicator will now follow theme color changes properly (#1854)
1 parent d17540a commit bc2a747

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/components/src/Accordion/AccordionDisclosure.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,8 @@ export const AccordionDisclosureStyle = styled.div
136136
}))<AccordionDisclosureStyleProps>`
137137
align-items: center;
138138
background-color: transparent;
139-
${({ color }) => (color ? colorStyleFn : 'color: currentColor;')}
139+
${({ color, theme }) =>
140+
color ? colorStyleFn : `color: ${theme.colors.ui5};`}
140141
cursor: pointer;
141142
display: flex;
142143
outline: 1px solid transparent;

0 commit comments

Comments
 (0)