fizzy icon indicating copy to clipboard operation
fizzy copied to clipboard

Fix auto-close knob showing range thumb on iOS Safari

Open viniciussoares opened this issue 3 weeks ago • 5 comments

On iOS Safari, the native range input thumb appears as a white ball in the center of the auto-close knob component, overlaying the custom UI.

Fix

Hide the range input on iOS Safari using a @supports feature query that targets WebKit on iOS.

Before After

viniciussoares avatar Dec 05 '25 23:12 viniciussoares

I haven't been able to reproduce this. Is it only happening in a particular version of Mobile Safari? I'm on iOS 26.1.

I don't love that this uses a generic @supports query to target Safari instead of querying for this specific feature. Dumb question: did you try -webkit-appearance: none;. Sometimes that's still effective even when appearance: none should work.

jzimdars avatar Dec 06 '25 03:12 jzimdars

It's also not mobile specific, I get this in desktop on Safari 17.6 Screen Shot 2025-12-06 at 12 37 18 PM.

foucist avatar Dec 06 '25 05:12 foucist

I haven't been able to reproduce this. Is it only happening in a particular version of Mobile Safari? I'm on iOS 26.1.

I don't love that this uses a generic @supports query to target Safari instead of querying for this specific feature. Dumb question: did you try -webkit-appearance: none;. Sometimes that's still effective even when appearance: none should work.

@jzimdars I tried another approach using opacity: 0 directly on .knob__slider and it works! In my case it happens on iOS 17.6.1.

It's also not mobile specific, I get this in desktop on Safari 17.6

@foucist Can you test with this new commit?

viniciussoares avatar Dec 06 '25 16:12 viniciussoares

I don't have an older version of Safari to test with but I can confirm the opacity: 0 doesn't break the intended behavior in Firefox and Chrome.

jzimdars avatar Dec 08 '25 18:12 jzimdars

So this one is good to merge @jzimdars?

jorgemanrubia avatar Dec 11 '25 05:12 jorgemanrubia

@jorgemanrubia I was hoping that @foucist would confirm it fixed the issue for him but even if it doesn't, it's harmless and ok to merge.

jzimdars avatar Dec 11 '25 15:12 jzimdars

Sorry, I got stuck with dev env issues so I wasn't able to test it locally. Looks good to me on app.fizzy.do now.

foucist avatar Dec 12 '25 04:12 foucist

No worries. Thanks for looking!

jzimdars avatar Dec 12 '25 14:12 jzimdars