norcross / gravity-tooltips

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

Tooltip does not fold up (Automatic row / line break(s) for tooltips are not working) #35

Closed mikeploeger closed 7 years ago

mikeploeger commented 7 years ago

Hello, i've deactivated v1.0.1 (which worked flawlessly with the latest gravity forms plugin version). After that Ive installed 2.0.3 of this plugin and activated it.

Now I have a problem. Tooltips with large amounts of text doesn't "fold up" anymore. Its just 1 long row of tooltip text. No line break. In the 1.0.1 release it folded up automatically just fine! If this is normal behaviour and we have to set every line break manually this would be a downgrade.

Is this a normal behaviour? How can I fix this? (Automatic row / Line breaks)

norcross commented 7 years ago

this version is pure CSS and thus doesn't automatically break lines. please refer to the readme file on how to insert line breaks manually.

mikeploeger commented 7 years ago

Thank you for your fast reply! One question, what was the reason to change this automatic line break behaviour? Does the new version have any benefits / what are the benefits despite more work?

norcross commented 7 years ago

it wasn't a change in behavior, per se, but the underlying structure. the previous version used JavaScript which increased load time and could introduce accessibility issues, as the library it used was old and no longer maintained. this version uses only CSS.