Skip to content

Commit

Permalink
Add classnames for View All buttons (#172)
Browse files Browse the repository at this point in the history
  • Loading branch information
vinnyjth authored Feb 23, 2024
1 parent faffed9 commit 96fcf70
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ function HorizontalCardListFeature(props = {}) {
title="View All"
variant="link"
onClick={handlePrimaryActionPress}
icon={<CaretRight size={18} weight="bold" />}
icon={<CaretRight className="primary-action-icon" size={18} weight="bold" />}
className="primary-action-button"
/>
) : null}
</Box>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function HorizontalMediaListFeature(props = {}) {
if (item.action === 'OPEN_URL') {
analytics.track('OpenUrl', {
url: item?.relatedNode?.url,
});
});
return window.open(getURLFromType(item.relatedNode), '_blank');
}

Expand Down Expand Up @@ -93,7 +93,8 @@ function HorizontalMediaListFeature(props = {}) {
title="View All"
variant="link"
onClick={handlePrimaryActionPress}
icon={<CaretRight size={18} weight="bold" />}
icon={<CaretRight className="primary-action-icon" size={18} weight="bold" />}
className="primary-action-button"
/>
) : null}
</Box>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ function VerticalCardListFeature(props = {}) {
variant="link"
onClick={handlePrimaryActionPress}
icon={<CaretRight size={18} weight="bold" />}
className="primary-action-button"
/>
) : null}
</Box>
Expand Down

0 comments on commit 96fcf70

Please sign in to comment.