Skip to content

Commit

Permalink
Add classnames for View All buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
vinnyjth committed Feb 22, 2024
1 parent 0b98d9b commit b845119
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 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 @@ -20,7 +20,7 @@ function VerticalCardListFeature(props = {}) {
if (item.action === 'OPEN_URL') {
analytics.track('OpenUrl', {
url: item?.relatedNode?.url,
});
});
return window.open(getURLFromType(item.relatedNode), '_blank');
}

Expand Down 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 b845119

Please sign in to comment.