Merge pull request #3319 from adamdmharvey/about-tooltips
Add tooltips on About card
This commit is contained in:
@@ -119,6 +119,7 @@ export function AboutCard({ entity, variant }: AboutCardProps) {
|
||||
action={
|
||||
<IconButton
|
||||
aria-label="Edit"
|
||||
title="Edit Metadata"
|
||||
onClick={() => {
|
||||
window.open(codeLink.edithref || '#', '_blank');
|
||||
}}
|
||||
@@ -133,7 +134,12 @@ export function AboutCard({ entity, variant }: AboutCardProps) {
|
||||
disabled={
|
||||
!entity.metadata.annotations?.['backstage.io/techdocs-ref']
|
||||
}
|
||||
label="View Techdocs"
|
||||
label="View TechDocs"
|
||||
title={
|
||||
!entity.metadata.annotations?.['backstage.io/techdocs-ref']
|
||||
? 'No TechDocs available'
|
||||
: ''
|
||||
}
|
||||
icon={<DocsIcon />}
|
||||
href={`/docs/${
|
||||
entity.metadata.namespace || ENTITY_DEFAULT_NAMESPACE
|
||||
@@ -142,6 +148,7 @@ export function AboutCard({ entity, variant }: AboutCardProps) {
|
||||
<IconLinkVertical
|
||||
disabled={!entity.spec?.implementsApis}
|
||||
label="View API"
|
||||
title={!entity.spec?.implementsApis ? 'No APIs available' : ''}
|
||||
icon={<ExtensionIcon />}
|
||||
href="api"
|
||||
/>
|
||||
|
||||
@@ -23,6 +23,7 @@ export type IconLinkVerticalProps = {
|
||||
icon?: React.ReactNode;
|
||||
href?: string;
|
||||
disabled?: boolean;
|
||||
title?: string;
|
||||
label: string;
|
||||
};
|
||||
|
||||
@@ -57,6 +58,7 @@ export function IconLinkVertical({
|
||||
<Link
|
||||
className={classnames(classes.link, classes.disabled)}
|
||||
underline="none"
|
||||
title={props.title}
|
||||
{...props}
|
||||
>
|
||||
{icon}
|
||||
|
||||
Reference in New Issue
Block a user