question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Overlapped code when `Copy to Clipboard > Image`

See original GitHub issue

I copied the following code from https://github.com/kitze/conditional-wrap

import React from 'react';
import { render } from 'react-dom';
import { Tooltip } from 'react-tippy';

import ConditionalWrap from 'conditional-wrap';

const Button = ({ tooltip, children }) => (
  <ConditionalWrap
    condition={!!tooltip}
    wrap={children => (
      <Tooltip position="bottom" title={tooltip}>
        {children}
      </Tooltip>
    )}
  >
    <button>{children}</button>
  </ConditionalWrap>
);

const Demo = () => (
  <div>
    <Button> Normal button </Button>
    <Button tooltip="Hi there!"> Button with a tooltip! </Button>
  </div>
);

render(<Demo />, document.getElementById('root'));

And it gave this pic → https://twitter.com/deadcoder0904/status/1245953211439165441/

Notice the Button at the bottom is overlapped with the div while in the editor it looks perfect

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
deadcoder0904commented, Apr 6, 2020

I’ll close this one then & add a note there. Since it happened to me twice with the same code 😂

1reaction
deadcoder0904commented, Apr 6, 2020

Yep, it gives the same. Here you go (I did this just now) 👇

carbon

Read more comments on GitHub >

github_iconTop Results From Across the Web

Overlay and copy picture over other picture - Stack Overflow
Overlay and copy picture over other picture · 1. Is there a reason you need to do this dynamically in HTML/CSS? · If...
Read more >
Overlapping Image & Text in Divi - YouTube
Learn how to overlap Image and Text in this tutorial. We'll also move the Image and Text on hover as well as make...
Read more >
How to place a text to overlap with an image?
To overlap elements: Add any two elements on the page (ex. image and text); Open the edit window of the second element ...
Read more >
Copy & Paste & The Web | CSS-Tricks
Accidental Overlaps​​ It's often done by laying a gradient image over top of that text. You can see through part of it, but...
Read more >
Copy images in buffer - Emacs Stack Exchange
I'd like to copy part of a buffer including all images. The code below copies the text but not the image. How do...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found