From 855f55bb9caa600afb0c03f8661f5cc727fe9408 Mon Sep 17 00:00:00 2001 From: Guergana Tzatchkova Date: Thu, 16 Nov 2023 16:25:31 +0100 Subject: [PATCH] Replace wikit button with codex button (#764) * Replace wikit button with codex button Bug: T346797 --- resources/js/Components/MismatchRow.vue | 15 ++++---- resources/js/Pages/Home.vue | 49 +++++++++++++------------ resources/js/Pages/Layout.vue | 20 ++++++---- resources/js/Pages/Results.vue | 48 ++++++++++++------------ resources/sass/app.scss | 6 +++ 5 files changed, 74 insertions(+), 64 deletions(-) diff --git a/resources/js/Components/MismatchRow.vue b/resources/js/Components/MismatchRow.vue index f7d30d54..c7c61033 100644 --- a/resources/js/Components/MismatchRow.vue +++ b/resources/js/Components/MismatchRow.vue @@ -68,15 +68,15 @@ {{uploadDate}}
{{uploadInfoDescription}} - {{$i18n('results-full-description-button')}} - +

{{ $i18n('about-mismatch-finder-title') }}

- - + {{ $i18n('faq-button') }} - +

{{ $i18n('item-form-title') }}

- - + {{ $i18n('random-mismatches') }} - +
- {{ $i18n('item-form-submit') }} - +
@@ -111,12 +107,11 @@ import { mapState } from 'pinia'; import { useStore } from '../store'; import { - Button as WikitButton, - Icon, Message, TextArea } from '@wmde/wikit-vue-components'; - import { CdxDialog } from "@wikimedia/codex"; + import { CdxDialog, CdxButton, CdxIcon } from "@wikimedia/codex"; + import { cdxIconDie, cdxIconInfo } from '@wikimedia/codex-icons'; import { defineComponent } from 'vue'; interface HomeState { @@ -143,11 +138,17 @@ export default defineComponent({ components: { CdxDialog, + CdxButton, + CdxIcon, InertiaHead, - Icon, Message, TextArea, - WikitButton + }, + setup() { + return { + cdxIconDie, + cdxIconInfo + }; }, methods: { splitInput: function(): Array { diff --git a/resources/js/Pages/Layout.vue b/resources/js/Pages/Layout.vue index 5cf3013e..1f9a3334 100644 --- a/resources/js/Pages/Layout.vue +++ b/resources/js/Pages/Layout.vue @@ -8,11 +8,9 @@
- - + + {{ currentLanguageAutonym }} diff --git a/resources/js/Pages/Results.vue b/resources/js/Pages/Results.vue index 329a1e9f..ffdf07e3 100644 --- a/resources/js/Pages/Results.vue +++ b/resources/js/Pages/Results.vue @@ -2,26 +2,22 @@
- - + + {{ $i18n('results-back-button') }} - +

{{ $i18n('results-page-title') }}

- - + {{$i18n('results-instructions-button')}} - +
- {{ $i18n('result-form-submit') }} - +
@@ -143,12 +138,11 @@ import { Head as InertiaHead } from '@inertiajs/inertia-vue3'; import { Link as WikitLink, - Button as WikitButton, Checkbox, - Icon, Message } from '@wmde/wikit-vue-components'; - import { CdxDialog } from "@wikimedia/codex"; + import { CdxButton, CdxIcon, CdxDialog } from "@wikimedia/codex"; + import { cdxIconInfo, cdxIconArrowPrevious } from '@wikimedia/codex-icons'; import LoadingOverlay from '../Components/LoadingOverlay.vue'; import MismatchesTable from '../Components/MismatchesTable.vue'; @@ -195,14 +189,20 @@ export default defineComponent({ components: { InertiaHead, - Icon, LoadingOverlay, MismatchesTable, WikitLink, - WikitButton, Checkbox, Message, - CdxDialog + CdxDialog, + CdxButton, + CdxIcon + }, + setup() { + return { + cdxIconInfo, + cdxIconArrowPrevious + }; }, props: { user: { diff --git a/resources/sass/app.scss b/resources/sass/app.scss index 68b6d7be..aa37fdaa 100644 --- a/resources/sass/app.scss +++ b/resources/sass/app.scss @@ -423,3 +423,9 @@ dl.import-meta .download-csv { } } } + +// TODO: This is a temporary fix until issue https://phabricator.wikimedia.org/T326900 +// is marked as resolved. +.cdx-button .cdx-icon { + vertical-align: text-top; +} \ No newline at end of file