Skip to content

Commit

Permalink
fix(styling): Fix annotation layer styling
Browse files Browse the repository at this point in the history
  • Loading branch information
karelee7 committed Aug 2, 2023
1 parent 1d2bd4b commit bd74e3e
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/common/BaseAnnotator.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,7 @@
@include box-sizing;
@include common-typography;
}

.ba-Layer--popup {
z-index: 4;
}
4 changes: 4 additions & 0 deletions src/drawing/DrawingAnnotations.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,7 @@
pointer-events: none;
}
}

.ba-Layer--drawing {
z-index: 3;
}
4 changes: 4 additions & 0 deletions src/highlight/HighlightAnnotations.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@
.ba-HighlightAnnotations-popup {
pointer-events: auto;
}

.ba-Layer--highlight {
z-index: 3;
}
2 changes: 1 addition & 1 deletion src/image/ImageAnnotator.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
// transform applied to each of the managers' react mount element to account for
// rotation
.ba-Layer--popup {
z-index: 1;
z-index: 4;
}
}
4 changes: 4 additions & 0 deletions src/region/RegionAnnotation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,7 @@
@include ba-RegionRect-callout;
}
}

.ba-Layer--region {
z-index: 3;
}

0 comments on commit bd74e3e

Please sign in to comment.