norcross / gravity-tooltips

Adds a custom field to each form element for tooltips
MIT License
74 stars 20 forks source link

Tooltips not working in Safari (iPhone) #40

Open davidtzvi opened 7 years ago

davidtzvi commented 7 years ago

I noticed that that the tooltips weren't always clickable on the iPhone.

I have a feeling it's related to this issue with hint.css:

https://github.com/chinchang/hint.css/issues/115

I was able to fix this behavior by wrapping the markup in front.php like this:

$setup = '<a href="javascript:void(0)"><span class="gf-icon ' . $class . '" data-hint="' . esc_attr( $text ) . '">' . $icon . '</span></a>';

Do you think this is the right approach? Should this change be implemented in your plugin's code?

norcross commented 7 years ago

I'll dig into how they fixed it and see if that causes any unintended problems