diff --git a/.changeset/smart-pens-change.md b/.changeset/smart-pens-change.md new file mode 100644 index 0000000000..8562693b97 --- /dev/null +++ b/.changeset/smart-pens-change.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-api-docs': patch +--- + +Use consistent Typography in Entity HasApisCard diff --git a/plugins/api-docs/src/components/ApiDefinitionCard/ApiTypeTitle.tsx b/plugins/api-docs/src/components/ApiDefinitionCard/ApiTypeTitle.tsx index 18ec2cb25f..8880cb9b7d 100644 --- a/plugins/api-docs/src/components/ApiDefinitionCard/ApiTypeTitle.tsx +++ b/plugins/api-docs/src/components/ApiDefinitionCard/ApiTypeTitle.tsx @@ -29,5 +29,9 @@ export const ApiTypeTitle = (props: { apiEntity: ApiEntity }) => { const definition = config.getApiDefinitionWidget(apiEntity); const type = definition ? definition.title : apiEntity.spec.type; - return {type}; + return ( + + {type} + + ); };