Skip to content

Commit

Permalink
Merge pull request #3814 from nextcloud/fix/noid/action-input-date-style
Browse files Browse the repository at this point in the history
Unify datetimepicker opacity in NcActionInput
  • Loading branch information
raimund-schluessler authored Feb 23, 2023
2 parents 763369e + 9a2f024 commit 4ed91f2
Showing 1 changed file with 6 additions and 21 deletions.
27 changes: 6 additions & 21 deletions src/components/NcActionInput/NcActionInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ 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,
'action-input--visible-label': labelVisible && label,
}"
Expand Down Expand Up @@ -469,6 +468,7 @@ $input-margin: 4px;
cursor: pointer;
white-space: nowrap;
opacity: $opacity_normal;
color: var(--color-main-text);
border: 0;
border-radius: 0; // otherwise Safari will cut the border-radius area
Expand All @@ -477,6 +477,11 @@ $input-margin: 4px;
font-weight: normal;
&:hover,
&:focus {
opacity: $opacity_full;
}
&__icon-wrapper {
display: flex;
align-self: center;
Expand All @@ -494,26 +499,6 @@ $input-margin: 4px;
}
}
// do not change the opacity of the datepicker
&:not(.action-input--picker) {
opacity: $opacity_normal;
&:hover,
&:focus {
opacity: $opacity_full;
}
}
// only change for the icon then
&--picker {
.action-input__icon {
opacity: $opacity_normal;
}
&:hover .action-input__icon,
&:focus .action-input__icon {
opacity: $opacity_full;
}
}
& > span {
cursor: pointer;
white-space: nowrap;
Expand Down

0 comments on commit 4ed91f2

Please sign in to comment.