Skip to content

Commit

Permalink
feat(annotations): Hide PopupCursor in discovery default mode (#1259)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mingze authored Sep 18, 2020
1 parent c6e3379 commit bf5bf17
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/lib/viewers/doc/_docBase.scss
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,11 @@ $thumbnail-sidebar-width: 226px;

.bp-content {
&.bp-annotations-discoverable {
// Hide cursor popup in default mode
.ba-PopupCursor {
display: none;
}

.textLayer {
pointer-events: none;

Expand All @@ -343,6 +348,11 @@ $thumbnail-sidebar-width: 226px;
}

&.bp-annotations-create--region {
// Reset cursor popup in explicit region mode
.ba-PopupCursor {
display: block;
}

.textLayer {
span {
pointer-events: none;
Expand Down

0 comments on commit bf5bf17

Please sign in to comment.