소스 검색

[web] Use btn-secondary on compile timeout notification (#21949)

* [web] Use btn-secondary on compile timeout notification
* fix update to wrong variant

GitOrigin-RevId: 9745ae17525e835c96f62471aa24a8ae9a1e7e93
Kristina 1 년 전
부모
커밋
583923a4d0

+ 1 - 1
services/web/frontend/js/features/pdf-preview/components/compile-time-warning-upgrade-prompt-inner.tsx

@@ -18,7 +18,7 @@ export const CompileTimeWarningUpgradePromptInner: FC<{
           variant="new-10s"
           variant="new-10s"
           source="compile-time-warning"
           source="compile-time-warning"
           buttonProps={{
           buttonProps={{
-            className: 'btn-secondary-compile-timeout-override',
+            variant: 'secondary',
           }}
           }}
         >
         >
           {hasNewPaywallCta
           {hasNewPaywallCta

+ 0 - 7
services/web/frontend/stylesheets/app/editor/pdf.less

@@ -545,10 +545,3 @@
       @margin-md
       @margin-md
   );
   );
 }
 }
-
-.btn-secondary-compile-timeout-override {
-  color: #1b222c;
-  background-color: #ffffff;
-  border-color: #677283;
-  border-width: 1px;
-}

+ 0 - 7
services/web/frontend/stylesheets/bootstrap-5/pages/editor/logs.scss

@@ -186,13 +186,6 @@
   }
   }
 }
 }
 
 
-.btn-secondary-compile-timeout-override {
-  color: var(--content-primary);
-  background-color: var(--bg-light-primary);
-  border-color: var(--border-primary);
-  border-width: 1px;
-}
-
 .log-entry-formatted-content,
 .log-entry-formatted-content,
 .log-entry-content-link {
 .log-entry-content-link {
   font-size: var(--font-size-02);
   font-size: var(--font-size-02);