]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-19711 Implement new layout
authorstanislavh <stanislav.honcharov@sonarsource.com>
Tue, 27 Jun 2023 11:31:08 +0000 (13:31 +0200)
committersonartech <sonartech@sonarsource.com>
Fri, 30 Jun 2023 20:03:15 +0000 (20:03 +0000)
server/sonar-web/design-system/src/components/Link.tsx
server/sonar-web/design-system/src/components/buttons.tsx
server/sonar-web/src/main/js/app/components/GlobalContainer.tsx

index 0234c8589284813f4774245e362516a6bd0cf354..7ec8470de210c07c5139e75c1bb2737270c8a478 100644 (file)
@@ -51,7 +51,6 @@ function BaseLinkWithRef(props: LinkProps, ref: React.ForwardedRef<HTMLAnchorEle
     preventDefault,
     showExternalIcon = !icon,
     stopPropagation,
-    target = '_blank',
     to,
     ...rest
   } = props;
@@ -85,12 +84,12 @@ function BaseLinkWithRef(props: LinkProps, ref: React.ForwardedRef<HTMLAnchorEle
   if (isExternal) {
     return (
       <a
+        rel="noopener noreferrer"
+        target="_blank"
         {...rest}
         href={toAsString}
         onClick={handleClick}
         ref={ref}
-        rel="noopener noreferrer"
-        target={target}
       >
         {icon}
         {children}
index a92028afbfd42bcc58fb090bcf94762c9f3f0924..c037c533d276665e5125e8dbbff9042df4fb839a 100644 (file)
@@ -36,8 +36,10 @@ export interface ButtonProps extends AllowedButtonAttributes {
   children?: React.ReactNode;
   className?: string;
   disabled?: boolean;
+  download?: string;
   icon?: React.ReactNode;
   innerRef?: React.Ref<HTMLButtonElement>;
+  isExternal?: LinkProps['isExternal'];
   onClick?: (event?: React.MouseEvent<HTMLButtonElement | HTMLAnchorElement>) => unknown;
 
   preventDefault?: boolean;
index 2a3d7ec742b536117382c313033f4b57986b8e58..9989a282df5c7951f6033d2a40d3bab3ca92f653 100644 (file)
@@ -45,6 +45,7 @@ const TEMP_PAGELIST_WITH_NEW_BACKGROUND = [
   '/project/issues',
   '/project/activity',
   '/code',
+  '/project/extension/securityreport/securityreport',
 ];
 
 export default function GlobalContainer() {