Merge pull request #33388 from Deepesh123455/fix/oauth-dom-nesting-warning

fix(core-components): resolve DOM nesting warning in OAuthRequestDialog
This commit is contained in:
Fredrik Adelöw
2026-03-24 14:20:08 +01:00
committed by GitHub
2 changed files with 16 additions and 2 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/core-components': patch
---
Resolved DOM nesting warning in OAuthRequestDialog by rendering secondary text as block-level spans.
@@ -92,11 +92,20 @@ const LoginRequestListItem = ({ request, busy, setBusy }: RowProps) => {
secondary={
<>
{message && (
<Typography variant="subtitle2" color="textSecondary">
<Typography
variant="subtitle2"
component="span"
display="block"
color="textSecondary"
>
{message}
</Typography>
)}
{error && <Typography color="error">{error}</Typography>}
{error && (
<Typography component="span" display="block" color="error">
{error}
</Typography>
)}
</>
}
/>