-
Notifications
You must be signed in to change notification settings - Fork 221
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
Configurable hint/help appearance #1081
Comments
- Building on @ghusse work for twbs/bootstrap#6713
Some doubt whether this will make it to 4.4. |
- add new properties to configure hint/help appearance - CSS classes are added depending on properties - tooltip/popover code enables itself automatically depending on appearance
We kept showing hints below labels by default, instead of using Bootstrap tooltips. We also didn't make the appearance configurable for Form Runner; hints show as text under the control, and help as Bootstrap popover; for now we haven't felt that adding such a level of complexity was needed, but we can always revisit this if needed. Created a separate issue to improve the way we edit HTML labels and hints (#1525). |
NOTE: Hint/help on items has been moved to #1311.
Requirements
Currently, controls can have help and hint messages:
We will:
New appearances for help/hint – We will keep the text under control and placeholder appearances, get rid of the dialog and YUI tooltip, and add a new tooltip based on the Bootstrap tooltip, and add a new popover based on the Bootstrap popover. Unlike what is done by default with Bootstrap, the tooltip won't hide right away when the pointer is moved away from the label, but will stay visible if the pointer moves to the tooltip, to support links and text selection. So help/hint will have 3 possible appearances, with the possibility of adding more options in the future:
The tooltip and popover are shown on mouseover and focus. Focus has the priority over mouseover: if a control has the focus, its tooltip/popover are shown, wherever the mouse is.
@avernet:
@ebruchez:
Help/hint appearance configurable – We will make how the help and hint are shown configurable. This configuration will be doable:
appearance
attribute on thexf:help
/xf:hint
FB: improved HTML editing – Editing HTML in the label, hint, item message, and help will be improved. Like now, a text field or text area is shown, but it will get a new GitHub inspired icon on the top-right, which when clicked will show a larger editor.
Non-requirements
This RFE does not cover the following cases, not because they don't make sense but because implementing them would add a significant amount of complexity. This of course doesn't close the door to also supporting those use cases in the future.
Implementation
(This section will need to be expanded)
xf:hint
The text was updated successfully, but these errors were encountered: