From ecef82070f0b7059dfcb38266c31fda8986492ef Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Thu, 18 Jul 2024 03:08:55 +0200 Subject: [PATCH 1/3] fix(NcInputField): Make focus visible on trailing button look better Signed-off-by: Ferdinand Thiessen --- src/components/NcInputField/NcInputField.vue | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/components/NcInputField/NcInputField.vue b/src/components/NcInputField/NcInputField.vue index 2c396948ff..87b1657ddc 100644 --- a/src/components/NcInputField/NcInputField.vue +++ b/src/components/NcInputField/NcInputField.vue @@ -490,11 +490,17 @@ export default { } &__trailing-button { + --button-size: calc(var(--default-clickable-area) - 2 * var(--border-width-input-focused, 2px)) !important; + &.button-vue { position: absolute; - top: 0; - right: 0; + top: var(--border-width-input-focused, 2px); + right: var(--border-width-input-focused, 2px); border-radius: var(--border-radius-large); + + &:focus-visible { + box-shadow: none !important; + } } &--pill.button-vue { From f42b03181667b85f6a139a8559847dd4d7a3a35e Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Thu, 18 Jul 2024 15:06:22 +0200 Subject: [PATCH 2/3] fix(NcInputField): Perfectly align trailing button outline with input field Signed-off-by: Ferdinand Thiessen [skip ci] --- src/components/NcInputField/NcInputField.vue | 24 ++++++++------------ 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/src/components/NcInputField/NcInputField.vue b/src/components/NcInputField/NcInputField.vue index 87b1657ddc..023bbce3d7 100644 --- a/src/components/NcInputField/NcInputField.vue +++ b/src/components/NcInputField/NcInputField.vue @@ -35,7 +35,6 @@ For a list of all available props and attributes, please check the [HTMLInputEle 'input-field__input--label-outside': labelOutside, 'input-field__input--success': success, 'input-field__input--error': error, - 'input-field__input--pill': pill, }]" :value="modelValue.toString()" @input="handleInput"> @@ -60,9 +59,6 @@ For a list of all available props and attributes, please check the [HTMLInputEle @@ -331,9 +327,10 @@ export default {