Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: HyperText does not show on Mobile #146

Open
1 task
cybercoder-naj opened this issue Feb 26, 2025 · 5 comments
Open
1 task

[BUG]: HyperText does not show on Mobile #146

cybercoder-naj opened this issue Feb 26, 2025 · 5 comments
Labels
bug Something isn't working

Comments

@cybercoder-naj
Copy link

Environment

System:
OS: Linux 6.12 EndeavourOS
CPU: (20) x64 12th Gen Intel(R) Core(TM) i7-12700H
Memory: 7.96 GB / 15.29 GB
Container: Yes
Shell: 3.7.1 - /bin/fish
Binaries:
Node: 20.18.3 - /usr/bin/node
npm: 11.1.0 - /usr/bin/npm
pnpm: 10.4.0 - /usr/bin/pnpm
bun: 1.2.2 - ~/.bun/bin/bun

Describe the bug

HyperText component works properly on Desktop browsers, but not on mobile browsers. They just flash once and disappear.

Reproduction

Copy the component code and use it in a project. View the development in the mobile browser. Production reproduction

Additional context

No response

Screenshots

No response

Logs

Additional information

  • Would you be willing to fix this bug?
@cybercoder-naj cybercoder-naj added the bug Something isn't working label Feb 26, 2025
@kalix127
Copy link
Contributor

kalix127 commented Feb 26, 2025

Could you send me the exact code you used? I tried reproducing the problem in one of my projects, but it works perfectly.

Edit: By the way, I'm able to view the text on your website by selecting it.
Image

@cybercoder-naj
Copy link
Author

Oh interesting observation, i didn't realise it is hidden. Here is the copied component and here is the usage.

@kalix127
Copy link
Contributor

The problem is the "text-transparent" class on the parent:
Image

@rahul-vashishtha this can be closed.

@cybercoder-naj
Copy link
Author

cybercoder-naj commented Feb 28, 2025

text-transparent is the culprit but it doesn't solve my issue. I require the text transparent so the gradient background is shown (note that i'm using bg-clip-text which clips the background to the shape of the text and text-transparent actually reveals the color.). It works on desktop but not on mobile.

@kalix127
Copy link
Contributor

I'll check better tomorrow but in any case I don't think this is a problem with the component itself

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants