From 9da2f8b7406d90efe251fdeb3c7d1de898b60d0a Mon Sep 17 00:00:00 2001 From: Noa Rave Date: Mon, 22 Jan 2024 15:39:34 +0100 Subject: [PATCH] Find a way around icon - text misalignment issue in codex buttons (#837) * make text in all icon buttons its own span and style that * remove padding as it worsens the issue on chrome * Add explicit alignment to the icon as well Co-authored-by: Guergana Tzatchkova --------- Co-authored-by: Guergana Tzatchkova --- resources/js/Pages/Home.vue | 4 ++-- resources/js/Pages/Layout.vue | 2 +- resources/js/Pages/Results.vue | 4 ++-- resources/sass/app.scss | 8 ++++++++ 4 files changed, 13 insertions(+), 5 deletions(-) diff --git a/resources/js/Pages/Home.vue b/resources/js/Pages/Home.vue index cbdfa310..b5fb5c99 100644 --- a/resources/js/Pages/Home.vue +++ b/resources/js/Pages/Home.vue @@ -11,7 +11,7 @@ @click="faqDialog = true" > - {{ $i18n('faq-button') }} + {{ $i18n('faq-button') }} - {{ $i18n('random-mismatches') }} + {{ $i18n('random-mismatches') }}
diff --git a/resources/js/Pages/Layout.vue b/resources/js/Pages/Layout.vue index 64aa5340..3c7d19c0 100644 --- a/resources/js/Pages/Layout.vue +++ b/resources/js/Pages/Layout.vue @@ -10,7 +10,7 @@ - {{ currentLanguageAutonym }} + {{ currentLanguageAutonym }} diff --git a/resources/js/Pages/Results.vue b/resources/js/Pages/Results.vue index a64b4b58..1492aaf6 100644 --- a/resources/js/Pages/Results.vue +++ b/resources/js/Pages/Results.vue @@ -4,7 +4,7 @@ - {{ $i18n('results-back-button') }} + {{ $i18n('results-back-button') }}
@@ -16,7 +16,7 @@ @click="instructionsDialog = true" > - {{$i18n('results-instructions-button')}} + {{$i18n('results-instructions-button')}}
diff --git a/resources/sass/app.scss b/resources/sass/app.scss index 4762de2e..25083b5c 100644 --- a/resources/sass/app.scss +++ b/resources/sass/app.scss @@ -348,6 +348,14 @@ dl.import-meta .download-csv { // is marked as resolved. .cdx-button { @include ui-text-M($font-weight-bold); + + .text-with-icon-button { + vertical-align: text-top; + padding-left: 5px; + .cdx-icon { + vertical-align: text-top; + } + } } .svg {