Skip to content

Commit b6d0378

Browse files
dsmmckenlex111
andauthored
refactor: adjust styling of back top top button (facebook#5469)
* refactor: css variables for back to top button * refactor: adjust back to top button styling * Update from PR feedback * err... darker. * swap secondary color for emphasis scale * reduce contrast further * Add new translations * Cleanup CSS * Remove active state Co-authored-by: Alexey Pyltsyn <lex61rus@gmail.com>
1 parent 9a089d4 commit b6d0378

File tree

25 files changed

+57
-25
lines changed

25 files changed

+57
-25
lines changed

packages/docusaurus-theme-classic/codeTranslations/ar.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"theme.AnnouncementBar.closeButtonAriaLabel": "إغلاق",
3+
"theme.BackToTopButton.buttonAriaLabel": "Scroll back to top",
34
"theme.CodeBlock.copied": "تم النسخ",
45
"theme.CodeBlock.copy": "نسخ",
56
"theme.CodeBlock.copyButtonAriaLabel": "نسخ الرمز إلى الحافظة",

packages/docusaurus-theme-classic/codeTranslations/base.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"theme.AnnouncementBar.closeButtonAriaLabel": "Close",
33
"theme.AnnouncementBar.closeButtonAriaLabel___DESCRIPTION": "The ARIA label for close button of announcement bar",
4+
"theme.BackToTopButton.buttonAriaLabel": "Scroll back to top",
45
"theme.CodeBlock.copied": "Copied",
56
"theme.CodeBlock.copied___DESCRIPTION": "The copied button label on code blocks",
67
"theme.CodeBlock.copy": "Copy",
@@ -96,7 +97,7 @@
9697
"theme.docs.versions.latestVersionLinkLabel": "latest version",
9798
"theme.docs.versions.latestVersionLinkLabel___DESCRIPTION": "The label used for the latest version suggestion link label",
9899
"theme.docs.versions.latestVersionSuggestionLabel": "For up-to-date documentation, see the {latestVersionLink} ({versionLabel}).",
99-
"theme.docs.versions.latestVersionSuggestionLabel___DESCRIPTION": "The label used to tell the user to check the latest version",
100+
"theme.docs.versions.latestVersionSuggestionLabel___DESCRIPTION": "The label userd to tell the user that he's browsing an unmaintained doc version",
100101
"theme.docs.versions.unmaintainedVersionLabel": "This is documentation for {siteTitle} {versionLabel}, which is no longer actively maintained.",
101102
"theme.docs.versions.unmaintainedVersionLabel___DESCRIPTION": "The label used to tell the user that he's browsing an unmaintained doc version",
102103
"theme.docs.versions.unreleasedVersionLabel": "This is unreleased documentation for {siteTitle} {versionLabel} version.",

packages/docusaurus-theme-classic/codeTranslations/bn.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"theme.AnnouncementBar.closeButtonAriaLabel": "বন্ধ করুন",
3+
"theme.BackToTopButton.buttonAriaLabel": "Scroll back to top",
34
"theme.CodeBlock.copied": "কপিড",
45
"theme.CodeBlock.copy": "কপি",
56
"theme.CodeBlock.copyButtonAriaLabel": "ক্লিপবোর্ডে কোড কপি করুন",

packages/docusaurus-theme-classic/codeTranslations/cs.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"theme.AnnouncementBar.closeButtonAriaLabel": "Zavřít",
3+
"theme.BackToTopButton.buttonAriaLabel": "Scroll back to top",
34
"theme.CodeBlock.copied": "Zkopírováno",
45
"theme.CodeBlock.copy": "Zkopírovat",
56
"theme.CodeBlock.copyButtonAriaLabel": "Zkopírovat kód do schránky",

packages/docusaurus-theme-classic/codeTranslations/da.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"theme.AnnouncementBar.closeButtonAriaLabel": "Luk",
3+
"theme.BackToTopButton.buttonAriaLabel": "Scroll back to top",
34
"theme.CodeBlock.copied": "Kopieret",
45
"theme.CodeBlock.copy": "Kopier",
56
"theme.CodeBlock.copyButtonAriaLabel": "Kopier kode til udklipsholder",

packages/docusaurus-theme-classic/codeTranslations/de.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"theme.AnnouncementBar.closeButtonAriaLabel": "Schließen",
3+
"theme.BackToTopButton.buttonAriaLabel": "Scroll back to top",
34
"theme.CodeBlock.copied": "Kopiert",
45
"theme.CodeBlock.copy": "Kopieren",
56
"theme.CodeBlock.copyButtonAriaLabel": "In die Zwischenablage kopieren",

packages/docusaurus-theme-classic/codeTranslations/es.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"theme.AnnouncementBar.closeButtonAriaLabel": "Cerrar",
3+
"theme.BackToTopButton.buttonAriaLabel": "Scroll back to top",
34
"theme.CodeBlock.copied": "Copiado",
45
"theme.CodeBlock.copy": "Copiar",
56
"theme.CodeBlock.copyButtonAriaLabel": "Copiar código al portapaples",

packages/docusaurus-theme-classic/codeTranslations/fa.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"theme.AnnouncementBar.closeButtonAriaLabel": "بستن",
3+
"theme.BackToTopButton.buttonAriaLabel": "Scroll back to top",
34
"theme.CodeBlock.copied": "کپی شد",
45
"theme.CodeBlock.copy": "کپی",
56
"theme.CodeBlock.copyButtonAriaLabel": "کپی به کلیپ بورد",

packages/docusaurus-theme-classic/codeTranslations/fil.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"theme.AnnouncementBar.closeButtonAriaLabel": "Isara",
3+
"theme.BackToTopButton.buttonAriaLabel": "Scroll back to top",
34
"theme.CodeBlock.copied": "Kinopya",
45
"theme.CodeBlock.copy": "Kopyahin",
56
"theme.CodeBlock.copyButtonAriaLabel": "Kopyahin ang code sa clipboard",

packages/docusaurus-theme-classic/codeTranslations/fr.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"theme.AnnouncementBar.closeButtonAriaLabel": "Fermer",
3+
"theme.BackToTopButton.buttonAriaLabel": "Scroll back to top",
34
"theme.CodeBlock.copied": "Copié",
45
"theme.CodeBlock.copy": "Copier",
56
"theme.CodeBlock.copyButtonAriaLabel": "Copier le code",

0 commit comments

Comments
 (0)