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

range not rendering properly on safari #357

Open
dvic opened this issue Oct 1, 2024 · 6 comments
Open

range not rendering properly on safari #357

dvic opened this issue Oct 1, 2024 · 6 comments

Comments

@dvic
Copy link
Contributor

dvic commented Oct 1, 2024

https://www.whatsmybrowser.org/b/381QC

The coloured area of the select range is not visible.

safari:
image

chrome:
image

@nhobes
Copy link
Contributor

nhobes commented Oct 8, 2024

You're right - thanks for pointing this out. I'll look into it and come back to you.

@nhobes
Copy link
Contributor

nhobes commented Oct 11, 2024

So I've done a fair bit of digging into this and attempted multiple solutions, but it's still giving me grief (so that the range still provides a dynamic fill without requiring JS).

I looked into this link, but keep getting inconsistent results with the thumb.

Long story short, there's a proposal to standardise input[type="range"] styling: w3c/csswg-drafts#4410

I don't have time at the moment to investigate this further, but feel free to submit a PR if you come up with a solution :)

@nhobes
Copy link
Contributor

nhobes commented Oct 11, 2024

For the record, this is where I got to, the dynamic fill is using a clip-path and box-shadow to simulate the progress fill.

CleanShot 2024-10-11 at 14 38 11@2x

@dvic
Copy link
Contributor Author

dvic commented Oct 11, 2024

I looked into this link, but keep getting inconsistent results with the thumb.

What inconsistency are you referring to? On my iPhone 14 that link works just fine, haven't tried my Mac yet.

@nhobes
Copy link
Contributor

nhobes commented Oct 15, 2024

Sorry, I just meant when I tried to modify our range with those styles, it didn't quite work out well cross-browser like I'd planned. I got close as you can see above with the screenshot I attached, but couldn't quite get the desired look and feel.

@dvic
Copy link
Contributor Author

dvic commented Oct 15, 2024

Sorry, I just meant when I tried to modify our range with those styles, it didn't quite work out well cross-browser like I'd planned. I got close as you can see above with the screenshot I attached, but couldn't quite get the desired look and feel.

Ah clear

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants