Skip to content

Commit

Permalink
Merge pull request #3614 from nextcloud/fix/action-input-style
Browse files Browse the repository at this point in the history
  • Loading branch information
skjnldsv authored Jan 5, 2023
2 parents 438cf17 + bc330c7 commit 8105cc5
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/components/NcActionInput/NcActionInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,11 @@ For the multiselect component, all events will be passed through. Please see the

<template>
<li class="action" :class="{ 'action--disabled': disabled }">
<span :class="{ 'action-input--picker': datePickerType , 'action-input-picker--disabled': disabled}"
<span :class="{
'action-input--picker': datePickerType,
'action-input-picker--disabled': disabled,
'action-input--visible-label': labelVisible && label,
}"
class="action-input"
@mouseleave="onLeave">
<!-- @slot Manually provide icon -->
Expand Down Expand Up @@ -490,12 +494,12 @@ $input-margin: 4px;
/* only show confirm borders if input is not focused */
&:not(:active):not(:hover):not(:focus) {
&:invalid {
& + .action-input__icon-label {
& ~ .action-input__icon-label {
border-color: var(--color-error);
border-left-color: transparent;
}
}
&:not(:disabled) + .action-input__icon-label {
&:not(:disabled) ~ .action-input__icon-label {
&:active,
&:hover,
&:focus {
Expand All @@ -507,7 +511,7 @@ $input-margin: 4px;
&:active,
&:hover,
&:focus {
&:not(:disabled) + .action-input__icon-label {
&:not(:disabled) ~ .action-input__icon-label {
/* above previous input */
z-index: 2;

Expand All @@ -534,7 +538,7 @@ li:last-child > .action-input {
}

// same for first item
li:first-child > .action-input {
li:first-child > .action-input:not(.action-input--visible-label) {
padding-top: $icon-margin - $input-margin;
}

Expand Down

0 comments on commit 8105cc5

Please sign in to comment.