diff --git a/.changeset/bright-birds-jog.md b/.changeset/bright-birds-jog.md new file mode 100644 index 0000000000..20954eca77 --- /dev/null +++ b/.changeset/bright-birds-jog.md @@ -0,0 +1,14 @@ +--- +'@backstage/core-components': patch +--- + +Fix warning produced by BottomLink component + +During development, we noticed warnings such as: + +``` +react_devtools_backend.js:2842 Warning: validateDOMNesting(...):
cannot appear as a descendant of

. +``` + +The BottomLink component renders a Box component within a Typography component which leads to a div tag within a p tag. +This change inverts that ordering without changing the visual appearance. diff --git a/packages/core-components/src/layout/BottomLink/BottomLink.tsx b/packages/core-components/src/layout/BottomLink/BottomLink.tsx index fdc64a9b90..74912acf4c 100644 --- a/packages/core-components/src/layout/BottomLink/BottomLink.tsx +++ b/packages/core-components/src/layout/BottomLink/BottomLink.tsx @@ -49,11 +49,11 @@ export const BottomLink = ({ link, title, onClick }: BottomLinkProps) => { - - - {title} - - + + + {title} + +