Skip to content

RI-7347: Tips section slightly broken: links, voting... #4875

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ const ContentElement = (props: Props) => {
case 'link':
return (
<Link
color="subdued"
key={`${telemetryName}-${idx}`}
data-testid={`link-${telemetryName}-${idx}`}
target="_blank"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ export interface Props {
}

const RecommendationBody = ({ elements = [], ...rest }: Props) => (
<>
<div>
{// eslint-disable-next-line react/no-array-index-key
elements?.map((item, idx) => (
<ContentElement key={idx} content={item} idx={idx} {...rest} />
))}
</>
</div>
)

export default RecommendationBody
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,15 @@ const RecommendationCopyComponent = ({
Example of a key that may be relevant:
</Text>
<div className={styles.keyNameWrapper}>
<ColorText
color="subdued"
<Text
className={cx(styles.keyName, 'truncateText', {
[styles.dbAnalysis]: !live,
})}
component="div"
data-testid="recommendation-key-name"
>
{formattedName}
</ColorText>
</Text>
<IconButton
onClick={handleCopy}
className={styles.btn}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const RecommendationVoting = ({
gap={live ? 'none' : 'l'}
data-testid="recommendation-voting"
>
<Text size="m" className={cx({ [styles.highlightText]: live })}>
<Text size="m">
Is this useful?
</Text>
<div className="voteContent">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
justify-content: center;
border-radius: 8px;
background-color: var(--recommendationsBgColor) !important;
padding: 4px 0;
padding: 4px 0 4px 10px;
:global {
.voteContent {
margin-left: 6px !important;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ $recommendationBorderColor: #3953c3;


// Recommendations
$recommendationsBgColor: #FFFFFF;
$recommendationsBgColor: #F0F0F0;
$recommendationBgColor: #F6F7F9;
$recommendationLiveBorderColor: #B37A1E;
$recommendationColor: #415681;
Expand Down
Loading