Преглед изворни кода

Ensure unique ids for tooltips (#13079)

GitOrigin-RevId: 9b6e5c60dade356549bb1b3fd9c6254ab00ace56
Alf Eaton пре 3 година
родитељ
комит
fefc8384fb

+ 1 - 1
services/web/frontend/js/features/pdf-preview/components/detach-compile-button.tsx

@@ -23,7 +23,7 @@ function DetachCompileButton() {
   return (
   return (
     <div className="detach-compile-button-container">
     <div className="detach-compile-button-container">
       <Tooltip
       <Tooltip
-        id="logs-toggle"
+        id="detach-compile"
         description={tooltipElement}
         description={tooltipElement}
         tooltipProps={{ className: 'keyboard-tooltip' }}
         tooltipProps={{ className: 'keyboard-tooltip' }}
         overlayProps={{ delayShow: 500 }}
         overlayProps={{ delayShow: 500 }}

+ 1 - 1
services/web/frontend/js/features/pdf-preview/components/pdf-compile-button.js

@@ -56,7 +56,7 @@ function PdfCompileButton() {
       button={{
       button={{
         tooltip: {
         tooltip: {
           description: tooltipElement,
           description: tooltipElement,
-          id: 'logs-toggle',
+          id: 'compile',
           tooltipProps: { className: 'keyboard-tooltip' },
           tooltipProps: { className: 'keyboard-tooltip' },
           overlayProps: { delayShow: 500 },
           overlayProps: { delayShow: 500 },
         },
         },

+ 1 - 1
services/web/frontend/js/features/pdf-preview/components/pdf-hybrid-download-button.tsx

@@ -22,7 +22,7 @@ function PdfHybridDownloadButton() {
 
 
   return (
   return (
     <Tooltip
     <Tooltip
-      id="logs-toggle"
+      id="download-pdf"
       description={description}
       description={description}
       overlayProps={{ placement: 'bottom' }}
       overlayProps={{ placement: 'bottom' }}
     >
     >