[BUG]: expand/collapse button broken hover effect
Closed this issue ยท 4 comments
mezotv commented
Description ๐
When hovering over the expand/collapse button the text under it turns unreadable
Link ๐
https://syntaxui.com/docs/animations/skewed-infinite-scroll
Steps to Reproduce ๐
- Go to https://syntaxui.com/docs/animations/skewed-infinite-scroll
- Scroll down to the expand button in the code view
- Hover over it
Screenshots ๐ธ
Expected Behavior ๐ค
The button has a hover effect thats inline with the branding
Actual Behavior ๐ฑ
The hover effect is applied to the background and makes the code under it unreadable
Environment ๐
Firefox - Windows 11
Additional Information โน๏ธ
No response
epoll31 commented
in src/components/code/CodeGroup.tsx
, in this button:
<Button className="w-xs absolute bottom-0 left-0 right-0 block rounded-2xl bg-transparent p-0 text-sm font-medium text-white"
onClick={() => setMinimized(!minimized)}
>
{minimized ? 'Expand' : 'Collapse'}
</Button>
adding w-full
to the className
instead of w-xs
will solve the centering issue in firefox. This way we can make sure that it's centered on all browsers.
mezotv commented
adding
w-full
to theclassName
instead ofw-xs
will solve the centering issue in firefox. This way we can make sure that it's centered on all browsers.
I made sure to add that, thank you!