From abc5ddab72b47f99bd0cb24f6e42f23944065297 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Molakvo=C3=A6=20=28skjnldsv=29?= Date: Sun, 10 Mar 2019 20:04:11 +0100 Subject: Fix conflict and white icons MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) --- css/ContactDetails.scss | 5 +++++ css/icons.scss | 18 ++++++++++++++---- img/delete.svg | 1 - img/download.svg | 1 - img/upload.svg | 1 - src/components/ContactDetails.vue | 15 +++++++++++++-- src/components/Properties/PropertyGroups.vue | 2 +- src/services/parseVcf.js | 4 ++-- src/services/validate.js | 6 ++++-- src/store/contacts.js | 26 ++++++++++++++++++++++---- webpack.common.js | 1 + 11 files changed, 62 insertions(+), 18 deletions(-) delete mode 100644 img/delete.svg delete mode 100644 img/download.svg delete mode 100644 img/upload.svg diff --git a/css/ContactDetails.scss b/css/ContactDetails.scss index e4b8c8bc..85f18a80 100644 --- a/css/ContactDetails.scss +++ b/css/ContactDetails.scss @@ -72,6 +72,11 @@ position: relative; height: 44px; width: 44px; + // ! override default server class + > .icon-more-white { + // using #fffffe to trick the accessibility dark theme icon invert + @include icon-color('more', 'actions', '#fffffe', 1, true); + } } .header-icon { height: 44px; diff --git a/css/icons.scss b/css/icons.scss index 60cb2b32..6192e631 100644 --- a/css/icons.scss +++ b/css/icons.scss @@ -40,17 +40,27 @@ @include icon-color('up', 'contacts', $color-black, 1); } +.icon-up-force-white { + // using #fffffe to trick the accessibility dark theme icon invert + @include icon-color('up', 'contacts', '#fffffe', 1); +} + +.icon-history-force-white { + // using #fffffe to trick the accessibility dark theme icon invert + @include icon-color('history', 'actions', '#fffffe', 1, true); +} + .icon-delete-force-white { // using #fffffe to trick the accessibility dark theme icon invert - @include icon-color('delete', 'contacts', '#fffffe', 1); + @include icon-color('delete', 'actions', '#fffffe', 1, true); } .icon-download-force-white { // using #fffffe to trick the accessibility dark theme icon invert - @include icon-color('download', 'contacts', '#fffffe', 1); + @include icon-color('download', 'actions', '#fffffe', 1, true); } .icon-upload-force-white { // using #fffffe to trick the accessibility dark theme icon invert - @include icon-color('upload', 'contacts', '#fffffe', 1); -} \ No newline at end of file + @include icon-color('upload', 'actions', '#fffffe', 1, true); +} diff --git a/img/delete.svg b/img/delete.svg deleted file mode 100644 index 53f0b020..00000000 --- a/img/delete.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/img/download.svg b/img/download.svg deleted file mode 100644 index dd2389b2..00000000 --- a/img/download.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/img/upload.svg b/img/upload.svg deleted file mode 100644 index 92ca7920..00000000 --- a/img/upload.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/src/components/ContactDetails.vue b/src/components/ContactDetails.vue index c5f2bfd8..b740e0d5 100644 --- a/src/components/ContactDetails.vue +++ b/src/components/ContactDetails.vue @@ -77,7 +77,7 @@ content: conflict, show: true, trigger: 'manual', - }" class="header-icon header-icon--pulse icon-history-white" + }" class="header-icon header-icon--pulse icon-history-force-white" @click="refreshContact" />