Skip to content

Commit 8105cc5

Browse files
authored
Merge pull request #3614 from nextcloud/fix/action-input-style
2 parents 438cf17 + bc330c7 commit 8105cc5

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

src/components/NcActionInput/NcActionInput.vue

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,11 @@ For the multiselect component, all events will be passed through. Please see the
3939

4040
<template>
4141
<li class="action" :class="{ 'action--disabled': disabled }">
42-
<span :class="{ 'action-input--picker': datePickerType , 'action-input-picker--disabled': disabled}"
42+
<span :class="{
43+
'action-input--picker': datePickerType,
44+
'action-input-picker--disabled': disabled,
45+
'action-input--visible-label': labelVisible && label,
46+
}"
4347
class="action-input"
4448
@mouseleave="onLeave">
4549
<!-- @slot Manually provide icon -->
@@ -490,12 +494,12 @@ $input-margin: 4px;
490494
/* only show confirm borders if input is not focused */
491495
&:not(:active):not(:hover):not(:focus) {
492496
&:invalid {
493-
& + .action-input__icon-label {
497+
& ~ .action-input__icon-label {
494498
border-color: var(--color-error);
495499
border-left-color: transparent;
496500
}
497501
}
498-
&:not(:disabled) + .action-input__icon-label {
502+
&:not(:disabled) ~ .action-input__icon-label {
499503
&:active,
500504
&:hover,
501505
&:focus {
@@ -507,7 +511,7 @@ $input-margin: 4px;
507511
&:active,
508512
&:hover,
509513
&:focus {
510-
&:not(:disabled) + .action-input__icon-label {
514+
&:not(:disabled) ~ .action-input__icon-label {
511515
/* above previous input */
512516
z-index: 2;
513517
@@ -534,7 +538,7 @@ li:last-child > .action-input {
534538
}
535539
536540
// same for first item
537-
li:first-child > .action-input {
541+
li:first-child > .action-input:not(.action-input--visible-label) {
538542
padding-top: $icon-margin - $input-margin;
539543
}
540544

0 commit comments

Comments
 (0)