Skip to content

Commit 33288a2

Browse files
authored
Merge pull request #291 from terrastruct/fix-copy-hover
fix hidden copy button in example modals
2 parents 1c7c318 + 356179b commit 33288a2

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

src/theme/CodeBlock/CodeBlock.scss

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,21 @@
105105
}
106106
}
107107

108+
/* Special positioning for tooltips in modals */
109+
.example-modal-content .CodeBlock {
110+
.Copy--Tooltip,
111+
.PlaygroundLink--Tooltip {
112+
top: 50%;
113+
left: -8px;
114+
transform: translateX(-100%) translateY(-50%);
115+
}
116+
117+
.Copy--Arrow,
118+
.PlaygroundLink--Arrow {
119+
display: none;
120+
}
121+
}
122+
108123
.PlaygroundLink {
109124
right: 3.6rem;
110125
}

0 commit comments

Comments
 (0)