Skip to content

Commit 5da255c

Browse files
Fix styles for input fields on focus state
Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com>
1 parent 50de755 commit 5da255c

File tree

6 files changed

+23
-8
lines changed

6 files changed

+23
-8
lines changed

core/src/views/ContactsMenu.vue

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,14 @@
5858
</ul>
5959
</div>
6060
<div v-if="contactsAppEnabled" class="contactsmenu__menu__content__footer">
61-
<NcButton type="tertiary" :href="contactsAppURL">{{ t('core', 'Show all contacts') }}</NcButton>
61+
<NcButton type="tertiary" :href="contactsAppURL">
62+
{{ t('core', 'Show all contacts') }}
63+
</NcButton>
6264
</div>
6365
<div v-else-if="canInstallApp" class="contactsmenu__menu__content__footer">
64-
<NcButton type="tertiary" :href="contactsAppMgmtURL">{{ t('core', 'Install the Contacts app') }}</NcButton>
66+
<NcButton type="tertiary" :href="contactsAppMgmtURL">
67+
{{ t('core', 'Install the Contacts app') }}
68+
</NcButton>
6569
</div>
6670
</div>
6771
</div>
@@ -170,6 +174,12 @@ export default {
170174
width: 100%;
171175
height: 34px;
172176
margin: 8px 0;
177+
178+
&:focus,
179+
&:active {
180+
border-color: 2px solid var(--color-main-text) !important;
181+
box-shadow: 0 0 0 2px var(--color-main-background) !important;
182+
}
173183
}
174184
175185
&__content {

core/src/views/UnifiedSearch.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -762,6 +762,11 @@ $input-padding: 6px;
762762
763763
&__form-input {
764764
margin: 0 !important;
765+
&:focus,
766+
&:active {
767+
border-color: 2px solid var(--color-main-text) !important;
768+
box-shadow: 0 0 0 2px var(--color-main-background) !important;
769+
}
765770
}
766771
767772
&__input-row {

dist/core-main.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/core-main.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/core-unified-search.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/core-unified-search.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)