From 74871ccc3e02016af77341391aeb2352281bda76 Mon Sep 17 00:00:00 2001 From: Gabriel Dugny Date: Fri, 28 Feb 2025 19:48:13 +0100 Subject: [PATCH] fix(api-docs): Consistent Typography in Entity HasApisCard Signed-off-by: Gabriel Dugny --- .changeset/smart-pens-change.md | 5 +++++ .../src/components/ApiDefinitionCard/ApiTypeTitle.tsx | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 .changeset/smart-pens-change.md 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} + + ); };