Skip to content

Commit

Permalink
Fix to show tooltip on explore card badges (#3328)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeff-phillips-18 authored Oct 15, 2024
1 parent 064abe9 commit c4ae140
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions frontend/src/components/OdhCard.scss
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@
visibility: hidden;
}

&.odh-m-selectable {
z-index: 1;
cursor: pointer;
}
&.odh-m-doc {
border-color: var(--pf-v5-global--BackgroundColor--light-300);
display: flex;
Expand Down
3 changes: 2 additions & 1 deletion frontend/src/components/OdhExploreCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ const OdhExploreCard: React.FC<OdhExploreCardProps> = ({
const cardClasses = classNames('odh-card', { 'm-disabled': disabled });
const badgeClasses = classNames('odh-card__partner-badge', {
'm-hidden': odhApp.spec.support === ODH_PRODUCT_NAME,
'odh-m-selectable': !disabled,
});

return (
Expand All @@ -64,7 +65,7 @@ const OdhExploreCard: React.FC<OdhExploreCardProps> = ({
<FlexItem className="odh-card__coming-soon">Coming soon</FlexItem>
)}
{!odhApp.spec.comingSoon && odhApp.spec.category && (
<FlexItem className={badgeClasses}>
<FlexItem className={badgeClasses} onClick={disabled ? undefined : onSelect}>
<OdhExploreCardTypeBadge category={odhApp.spec.category} />
</FlexItem>
)}
Expand Down

0 comments on commit c4ae140

Please sign in to comment.