Skip to content

Commit

Permalink
fix(Accordion): address QA updates from design (#1948)
Browse files Browse the repository at this point in the history
- better positioning of `NumberIcon` when used with `Accordion`
- fixes to color token when using `Icon` instances
  • Loading branch information
booc0mtaco authored May 17, 2024
1 parent 007d757 commit 56fa437
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/components/Accordion/Accordion-v2.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,12 @@
}

.accordion-button__leading-icon {
color: var(--eds-theme-color-icon-utility-default-primary);
color: var(--eds-theme-color-icon-utility-default-secondary);

/* Targeting NumberIcons and other images used in this specific context */
& [role='img'] {
display: inline-flex;
}
}

.accordion-button__title {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Accordion/Accordion-v2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ type AccordionRowProps = {
*/
isExpandable?: boolean;
/**
*
* Whether the row has a leading icon on the row's trigger
*/
hasLeadingIcon?: boolean;
};
Expand Down

0 comments on commit 56fa437

Please sign in to comment.