mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-28 07:35:50 +00:00
Update CompanyLogo component to use anchor tag for external links, enhancing accessibility and security with target and rel attributes.
This commit is contained in:
@@ -237,8 +237,10 @@ function DeveloperTools() {
|
||||
|
||||
function CompanyLogo({ className, alt, aspectRatio, link }) {
|
||||
return (
|
||||
<div
|
||||
onClick={() => window.open(link, "_blank")}
|
||||
<a
|
||||
href={link}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
className={`company-logo ${className}`}
|
||||
role="img"
|
||||
aria-label={alt}
|
||||
|
||||
Reference in New Issue
Block a user