From 30f11f818168c89126777b717ab37829e25e8378 Mon Sep 17 00:00:00 2001 From: Dixsie Wolmers Date: Tue, 10 Nov 2020 16:07:56 -0600 Subject: Align button icons - Fixes button icon and text alignment - App header buttons to be addressed separately - Button documentation will be addressed in separate commit - Aligns form input buttons: datepicker, clear search, and password toggle - Moves title from icon to button for icon only buttons - Aligns validation icon with form input buttons Signed-off-by: Dixsie Wolmers Change-Id: Ie28d7d7dd7303ab6bf1897d1fa569e1580cc2f9d --- src/components/Global/InfoTooltip.vue | 9 ++- src/components/Global/InputPasswordToggle.vue | 22 +++---- src/components/Global/Search.vue | 16 +---- src/components/Global/TableDateFilter.vue | 92 ++++++++++++--------------- src/components/Global/TableRowAction.vue | 4 +- 5 files changed, 62 insertions(+), 81 deletions(-) (limited to 'src/components/Global') diff --git a/src/components/Global/InfoTooltip.vue b/src/components/Global/InfoTooltip.vue index f3cb7f12..5d604503 100644 --- a/src/components/Global/InfoTooltip.vue +++ b/src/components/Global/InfoTooltip.vue @@ -1,6 +1,11 @@ diff --git a/src/components/Global/InputPasswordToggle.vue b/src/components/Global/InputPasswordToggle.vue index bf3e4ca5..2119f8c6 100644 --- a/src/components/Global/InputPasswordToggle.vue +++ b/src/components/Global/InputPasswordToggle.vue @@ -2,22 +2,15 @@
-
@@ -32,6 +25,7 @@ export default { data() { return { isVisible: false, + togglePasswordLabel: this.$t('global.ariaLabel.showPassword'), }; }, methods: { @@ -44,6 +38,10 @@ export default { if (inputEl.nodeName === 'INPUT') { inputEl.type = this.isVisible ? 'text' : 'password'; } + + this.isVisible + ? (this.togglePasswordLabel = this.$t('global.ariaLabel.hidePassword')) + : (this.togglePasswordLabel = this.$t('global.ariaLabel.showPassword')); }, }, }; diff --git a/src/components/Global/Search.vue b/src/components/Global/Search.vue index c259df91..d472c0c9 100644 --- a/src/components/Global/Search.vue +++ b/src/components/Global/Search.vue @@ -23,10 +23,12 @@ - + @@ -77,16 +79,4 @@ export default { z-index: 4; stroke: gray('400'); } - -.btn { - position: absolute; - right: 0; - top: 0; - padding: 0.4rem 1rem; - z-index: 4; - svg { - margin-left: 0; - vertical-align: sub; - } -} diff --git a/src/components/Global/TableDateFilter.vue b/src/components/Global/TableDateFilter.vue index 73b2b832..00c04ab0 100644 --- a/src/components/Global/TableDateFilter.vue +++ b/src/components/Global/TableDateFilter.vue @@ -23,32 +23,26 @@ {{ $t('global.form.dateMustBeBefore', { date: toDate }) }} - + + + - + + + diff --git a/src/components/Global/TableRowAction.vue b/src/components/Global/TableRowAction.vue index a12ae801..94ef6ce4 100644 --- a/src/components/Global/TableRowAction.vue +++ b/src/components/Global/TableRowAction.vue @@ -2,7 +2,7 @@