File tree Expand file tree Collapse file tree 4 files changed +27
-2
lines changed
pages/SoftwarePage/SoftwareTitleDetailsPage/SoftwarePackageCard Expand file tree Collapse file tree 4 files changed +27
-2
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ interface ICustomLinkProps {
12
12
/** Icon wraps on new line with last word */
13
13
multiline ?: boolean ;
14
14
iconColor ?: Colors ;
15
- color ?: "core-fleet-blue" | "core-fleet-black" ;
15
+ color ?: "core-fleet-blue" | "core-fleet-black" | "core-fleet-white" ;
16
16
/** Restricts access via keyboard when CustomLink is part of disabled UI */
17
17
disableKeyboardNavigation ?: boolean ;
18
18
}
@@ -31,6 +31,7 @@ const CustomLink = ({
31
31
} : ICustomLinkProps ) : JSX . Element => {
32
32
const customLinkClass = classnames ( baseClass , className , {
33
33
[ `${ baseClass } --black` ] : color === "core-fleet-black" ,
34
+ [ `${ baseClass } --white` ] : color === "core-fleet-white" ,
34
35
} ) ;
35
36
36
37
const target = newTab ? "_blank" : "" ;
Original file line number Diff line number Diff line change 13
13
& --black {
14
14
color : $core-fleet-black ;
15
15
}
16
+
17
+ & --black {
18
+ color : $core-fleet-black ;
19
+ }
20
+
21
+ & --white {
22
+ color : $core-fleet-white ;
23
+ }
16
24
}
Original file line number Diff line number Diff line change @@ -30,6 +30,8 @@ import Tag from "components/Tag";
30
30
import SoftwareIcon from "pages/SoftwarePage/components/icons/SoftwareIcon" ;
31
31
import endpoints from "utilities/endpoints" ;
32
32
import URL_PREFIX from "router/url_prefix" ;
33
+ import { LEARN_MORE_ABOUT_BASE_LINK } from "utilities/constants" ;
34
+ import CustomLink from "components/CustomLink" ;
33
35
34
36
import DeleteSoftwareModal from "../DeleteSoftwareModal" ;
35
37
import EditSoftwareModal from "../EditSoftwareModal" ;
@@ -318,7 +320,20 @@ const SoftwareInstallerCard = ({
318
320
const versionInfo = version ? (
319
321
< span > { version } </ span >
320
322
) : (
321
- < TooltipWrapper tipContent = { `Fleet couldn't read the version from ${ name } ` } >
323
+ < TooltipWrapper
324
+ tipContent = {
325
+ < span >
326
+ Fleet couldn't read the version from ${ name } .{ " " }
327
+ < CustomLink
328
+ newTab
329
+ url = { `${ LEARN_MORE_ABOUT_BASE_LINK } /read-package-version` }
330
+ text = "Learn more"
331
+ color = "core-fleet-white"
332
+ iconColor = "core-fleet-white"
333
+ />
334
+ </ span >
335
+ }
336
+ >
322
337
Version (unknown)
323
338
</ TooltipWrapper >
324
339
) ;
Original file line number Diff line number Diff line change 1
1
// Core
2
2
$core-fleet-black : #192147 ;
3
+ $core-fleet-white : #ffffff ;
3
4
$core-fleet-blue : #3e4771 ;
4
5
$core-vibrant-blue : #6a67fe ;
5
6
$core-vibrant-red : #ff5c83 ;
You can’t perform that action at this time.
0 commit comments