Skip to content

Commit

Permalink
add style to bring drop down to the foreground in the drawer dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
ck-c8y committed Nov 27, 2024
1 parent a813002 commit 8478fa6
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 16 deletions.
12 changes: 0 additions & 12 deletions dynamic-mapping-ui/src/mapping/shared/mapping.style.css
Original file line number Diff line number Diff line change
Expand Up @@ -62,18 +62,6 @@ json-editor > div {
top: -20px;
}

.animation-slow {
animation-duration: 2s;
}

.animate-background {
animation-name: background-color;
animation-duration: 2s;
animation-iteration-count: infinite;
animation-direction: alternate-reverse;
animation-timing-function: ease;
}

@keyframes background-color {
from {
background-color: var(--brand-light, var(--c8y-brand-light));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ import { ConnectorConfigurationComponent } from '../../shared/connector-configur
@Component({
selector: 'd11r-mapping-connector',
templateUrl: 'mapping-connector.component.html',
styleUrls: ['../shared/mapping.style.css'],
styleUrls: ['../shared/mapping.style.css', './mapping-connector.style.css'],
encapsulation: ViewEncapsulation.None
})
export class MappingConnectorComponent implements OnInit, OnDestroy {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

/* bring dropdown to the top of the modal dialog */
body > bs-dropdown-container {
z-index: 1056 !important;
position: relative;
}
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ export class MappingStepperComponent implements OnInit, OnDestroy {
wrappers: ['custom-form-field'],
templateOptions: {
label: 'Source Expression',
class: 'input-sm disabled-animate-background',
class: 'input-sm',
customWrapperClass: 'm-b-24',
disabled:
this.stepperConfiguration.editorMode == EditorMode.READ_ONLY ||
Expand Down Expand Up @@ -275,7 +275,7 @@ export class MappingStepperComponent implements OnInit, OnDestroy {
model.pathSource == '' &&
model.stepperConfiguration.allowDefiningSubstitutions
) {
return 'input-sm disabled-animate-background';
return 'input-sm';
} else {
return 'input-sm';
}
Expand Down Expand Up @@ -314,7 +314,7 @@ export class MappingStepperComponent implements OnInit, OnDestroy {
model.pathTarget == '' &&
model.stepperConfiguration.allowDefiningSubstitutions
) {
return 'input-sm disabled-animate-background';
return 'input-sm';
} else {
return 'input-sm';
}
Expand Down

0 comments on commit 8478fa6

Please sign in to comment.