fix(core-components): Add notice Edit Metadata Link opens in new tab
Signed-off-by: Carlos Esteban Lopez <lcarlosesteb@vmware.com>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/core-components': patch
|
||||
---
|
||||
|
||||
Fix accessibility issue with Edit Metadata Link on screen readers missing notice about opening in a new tab.
|
||||
@@ -188,6 +188,9 @@ export const Link = React.forwardRef<any, LinkProps>(
|
||||
<MaterialLink
|
||||
{...(newWindow ? { target: '_blank', rel: 'noopener' } : {})}
|
||||
{...props}
|
||||
{...(props['aria-label']
|
||||
? { 'aria-label': `${props['aria-label']}, Opens in a new window` }
|
||||
: {})}
|
||||
ref={ref}
|
||||
href={to}
|
||||
onClick={handleClick}
|
||||
|
||||
Reference in New Issue
Block a user