Skip to content

Commit 8bf67ed

Browse files
committed
fix: always keep ui-kit poppers visible
we have a situation in that SOME osx users don't see tooltips and the dependency toggle on the services form. this is a workaround that always keeps poppers visible - where they would usually be hidden once their reference elements are scrolled out of the viewport. closes COPS-6624
1 parent 87806d4 commit 8bf67ed

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

src/styles/hacks.less

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// COPS-6624
2+
// popper.js sometimes seems to think that our reference elements are outside of the viewport and marks them with this attribute.
3+
// ui-kit then chooses to set `visibility: hidden; pointer-events: none;`, which effectively hides the poppers for some OSX users.
4+
// this is a quickfix that we could try removing once we removed FullScreenModal from the code base.
5+
body [data-popper-reference-hidden] {
6+
visibility: visible !important;
7+
pointer-events: auto !important;
8+
}

src/styles/index.less

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -536,3 +536,6 @@
536536

537537
@import 'views/services/variables.less';
538538
@import 'views/services/styles.less';
539+
540+
// Stuff we'd love to get rid of
541+
@import 'hacks.less';

0 commit comments

Comments
 (0)