widgets icon indicating copy to clipboard operation
widgets copied to clipboard

Gray strip overlaps header in the token list

Open cawabunga opened this issue 1 year ago • 6 comments

Bug Description Grayish strip overlaps header in the list of tokens, which disallows to close the list.

Steps to Reproduce

  1. Click on token select
  2. List is opened with grayish strip in the header

Expected Behavior I am not sure the purpose of the strip, but I suppose it should be placed on element of the active token.

Additional Context Codesandbox

Screenshot

Screenshot 2023-05-11 at 18 30 00

cawabunga avatar May 11 '23 16:05 cawabunga

I'm having the same issue, I have a list of several tokens, and when I hover on them, the gray strip moves along. Hovering the 1st element will hide the closing button, hovering on the 2nd one hides the input field, and so on.

Not sure what's causing it, nothing's been changed in the style, except for the dark mode. But it happens also in light mode, just like the screenshot above.

Screenshots

brave_NWxCFHorBX

brave_bEFjLVzVBc

brave_8KQkwB8bp4

justinevedovato avatar May 15 '23 19:05 justinevedovato

Has anyone been able to fix that? I'm having the same issue :((

datnguyen-tech avatar May 25 '23 11:05 datnguyen-tech

Has anyone been able to fix that? I'm having the same issue :((

I had to do a quick fix. Wrap your uniswap widget with <div class="uniswap"> and add next css:

.uniswap [color='container'] > div > div:nth-child(3) {
  position: relative;
}

cawabunga avatar May 25 '23 19:05 cawabunga

Thanks for the fix!

justinevedovato avatar May 26 '23 10:05 justinevedovato

same here

TrejGun avatar Jul 16 '23 09:07 TrejGun

Same issue

looks like the reason is in this package https://github.com/Uniswap/widgets/blob/main/src/components/TokenSelect/TokenOptions.tsx#L229

beautyfree avatar Oct 24 '23 11:10 beautyfree