From 4adfca52bf82d1cd8680ab533600329054edd4c9 Mon Sep 17 00:00:00 2001
From: Davinder Singh
Date: Wed, 7 Dec 2022 10:51:44 +0000
Subject: [PATCH] Merge pull request #10682 from
overleaf/ds-btn-default-to-secondary-in-editor-part-2
Replacing btn-default with btn-secondary in the editor Part-2
GitOrigin-RevId: 708aa29070bb3049afbc8ee1a282eaa1018594a8
---
.../views/project/editor/history/toolbarV2.pug | 2 +-
.../components/dictionary-modal-content.tsx | 4 +++-
.../modes/file-tree-upload-doc.js | 2 +-
.../modals/file-tree-modal-create-folder.js | 8 +++++++-
.../components/modals/file-tree-modal-delete.js | 8 +++++++-
.../hotkeys-modal/components/hotkeys-modal.js | 4 +++-
.../components/pdf-log-entry-raw-content.js | 4 ++--
.../components/pdf-synctex-controls.js | 17 +++++++++++------
.../components/share-project-modal-content.js | 3 ++-
.../components/transfer-ownership-modal.js | 3 ++-
.../components/word-count-modal-content.js | 4 +++-
.../frontend/stylesheets/app/editor/pdf.less | 2 ++
12 files changed, 44 insertions(+), 17 deletions(-)
diff --git a/services/web/app/views/project/editor/history/toolbarV2.pug b/services/web/app/views/project/editor/history/toolbarV2.pug
index 1e42c08f21..e1f03d20f6 100644
--- a/services/web/app/views/project/editor/history/toolbarV2.pug
+++ b/services/web/app/views/project/editor/history/toolbarV2.pug
@@ -123,7 +123,7 @@ script(type="text/ng-template", id="historyV2AddLabelModalTemplate")
| #{translate("history_new_label_added_at")}
strong {{ update.meta.end_ts | formatDate:'ddd Do MMM YYYY, h:mm a' }}
.modal-footer
- button.btn.btn-default(
+ button.btn.btn-secondary(
type="button"
ng-disabled="state.inflight"
ng-click="$dismiss()"
diff --git a/services/web/frontend/js/features/dictionary/components/dictionary-modal-content.tsx b/services/web/frontend/js/features/dictionary/components/dictionary-modal-content.tsx
index 9334bd3806..6ba1e18d82 100644
--- a/services/web/frontend/js/features/dictionary/components/dictionary-modal-content.tsx
+++ b/services/web/frontend/js/features/dictionary/components/dictionary-modal-content.tsx
@@ -90,7 +90,9 @@ export default function DictionaryModalContent({
-
+
>
)
diff --git a/services/web/frontend/js/features/file-tree/components/file-tree-create/modes/file-tree-upload-doc.js b/services/web/frontend/js/features/file-tree/components/file-tree-create/modes/file-tree-upload-doc.js
index 7dcdfcf1af..92f1b86096 100644
--- a/services/web/frontend/js/features/file-tree/components/file-tree-create/modes/file-tree-upload-doc.js
+++ b/services/web/frontend/js/features/file-tree/components/file-tree-create/modes/file-tree-upload-doc.js
@@ -248,7 +248,7 @@ function UploadConflicts({ cancel, conflicts, handleOverwrite }) {
Overwrite
-
diff --git a/services/web/frontend/js/features/file-tree/components/modals/file-tree-modal-create-folder.js b/services/web/frontend/js/features/file-tree/components/modals/file-tree-modal-create-folder.js
index 054d7fb664..207e3444cb 100644
--- a/services/web/frontend/js/features/file-tree/components/modals/file-tree-modal-create-folder.js
+++ b/services/web/frontend/js/features/file-tree/components/modals/file-tree-modal-create-folder.js
@@ -81,7 +81,13 @@ function FileTreeModalCreateFolder() {
) : (
<>
- {t('cancel')}
+
+ {t('cancel')}
+
) : (
<>
- {t('cancel')}
+
+ {t('cancel')}
+
{t('delete')}
diff --git a/services/web/frontend/js/features/hotkeys-modal/components/hotkeys-modal.js b/services/web/frontend/js/features/hotkeys-modal/components/hotkeys-modal.js
index 53371a53a8..7b203f36ac 100644
--- a/services/web/frontend/js/features/hotkeys-modal/components/hotkeys-modal.js
+++ b/services/web/frontend/js/features/hotkeys-modal/components/hotkeys-modal.js
@@ -197,7 +197,9 @@ export default function HotkeysModal({
- {t('ok')}
+
+ {t('ok')}
+
)
diff --git a/services/web/frontend/js/features/pdf-preview/components/pdf-log-entry-raw-content.js b/services/web/frontend/js/features/pdf-preview/components/pdf-log-entry-raw-content.js
index 23dbf7ca84..b5b5039db1 100644
--- a/services/web/frontend/js/features/pdf-preview/components/pdf-log-entry-raw-content.js
+++ b/services/web/frontend/js/features/pdf-preview/components/pdf-log-entry-raw-content.js
@@ -40,8 +40,8 @@ export default function PdfLogEntryRawContent({
>
setExpanded(value => !value)}
>
{expanded ? (
diff --git a/services/web/frontend/js/features/pdf-preview/components/pdf-synctex-controls.js b/services/web/frontend/js/features/pdf-preview/components/pdf-synctex-controls.js
index 2ae2d9b4e2..63ab09037e 100644
--- a/services/web/frontend/js/features/pdf-preview/components/pdf-synctex-controls.js
+++ b/services/web/frontend/js/features/pdf-preview/components/pdf-synctex-controls.js
@@ -27,7 +27,7 @@ function GoToCodeButton({
}) {
const { t } = useTranslation()
const tooltipPlacement = isDetachLayout ? 'bottom' : 'right'
- const buttonClasses = classNames('synctex-control', {
+ const buttonClasses = classNames('synctex-control', 'btn-secondary', {
'detach-synctex-control': !!isDetachLayout,
})
@@ -45,7 +45,7 @@ function GoToCodeButton({
overlayProps={{ placement: tooltipPlacement }}
>
syncToCode(position, 72)}
disabled={syncToCodeInFlight}
@@ -68,9 +68,14 @@ function GoToPdfButton({
}) {
const { t } = useTranslation()
const tooltipPlacement = isDetachLayout ? 'bottom' : 'right'
- const buttonClasses = classNames('synctex-control', 'toolbar-btn-secondary', {
- 'detach-synctex-control': !!isDetachLayout,
- })
+ const buttonClasses = classNames(
+ 'synctex-control',
+ 'btn-secondary',
+ 'toolbar-btn-secondary',
+ {
+ 'detach-synctex-control': !!isDetachLayout,
+ }
+ )
let buttonIcon = null
if (syncToPdfInFlight) {
@@ -86,7 +91,7 @@ function GoToPdfButton({
overlayProps={{ placement: tooltipPlacement }}
>
syncToPdf(cursorPosition)}
disabled={syncToPdfInFlight || !cursorPosition || !hasSingleSelectedDoc}
diff --git a/services/web/frontend/js/features/share-project-modal/components/share-project-modal-content.js b/services/web/frontend/js/features/share-project-modal/components/share-project-modal-content.js
index 7233a040bb..93f560119d 100644
--- a/services/web/frontend/js/features/share-project-modal/components/share-project-modal-content.js
+++ b/services/web/frontend/js/features/share-project-modal/components/share-project-modal-content.js
@@ -46,7 +46,8 @@ export default function ShareProjectModalContent({
diff --git a/services/web/frontend/js/features/share-project-modal/components/transfer-ownership-modal.js b/services/web/frontend/js/features/share-project-modal/components/transfer-ownership-modal.js
index 90a121f641..3d2a8a473e 100644
--- a/services/web/frontend/js/features/share-project-modal/components/transfer-ownership-modal.js
+++ b/services/web/frontend/js/features/share-project-modal/components/transfer-ownership-modal.js
@@ -61,7 +61,8 @@ export default function TransferOwnershipModal({ member, cancel }) {
diff --git a/services/web/frontend/js/features/word-count-modal/components/word-count-modal-content.js b/services/web/frontend/js/features/word-count-modal/components/word-count-modal-content.js
index 5e2a31f00e..098d2a6157 100644
--- a/services/web/frontend/js/features/word-count-modal/components/word-count-modal-content.js
+++ b/services/web/frontend/js/features/word-count-modal/components/word-count-modal-content.js
@@ -76,7 +76,9 @@ export default function WordCountModalContent({ handleHide }) {
- {t('done')}
+
+ {t('done')}
+
>
)
diff --git a/services/web/frontend/stylesheets/app/editor/pdf.less b/services/web/frontend/stylesheets/app/editor/pdf.less
index f9303e9b23..74a84a1064 100644
--- a/services/web/frontend/stylesheets/app/editor/pdf.less
+++ b/services/web/frontend/stylesheets/app/editor/pdf.less
@@ -425,6 +425,8 @@
padding: 0 0 2px;
background-color: fade(@btn-default-bg, 80%);
transition: background 0.15s ease;
+ color: white;
+ border-color: transparent;
&:focus:not(:focus-visible) {
outline: none;