Skip to content

Commit

Permalink
fix(buttons): check for styles from item styling instead of block styles
Browse files Browse the repository at this point in the history
- now that the classes are set on the items we need to check from the item model for any theme or inverted option
  • Loading branch information
ichim-david committed Nov 28, 2022
1 parent e2cde08 commit d5e46cd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/UniversalCard/fragments/CardExtra.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ const CallToAction = ({ item, itemModel, styles }) => (
as="a"
href={getCallToAction(item, itemModel.callToAction)}
className={
styles?.theme
? styles.inverted
? styles.theme + ' inverted'
itemModel?.styles['theme:noprefix']
? itemModel?.styles['inverted:bool']
? itemModel?.styles['theme:noprefix'] + ' inverted'
: 'inverted'
: 'tertiary inverted'
}
Expand Down

0 comments on commit d5e46cd

Please sign in to comment.