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

Tooltips on radio buttons/checkboxes items #1311

Closed
7 tasks done
ebruchez opened this issue Oct 8, 2013 · 1 comment
Closed
7 tasks done

Tooltips on radio buttons/checkboxes items #1311

ebruchez opened this issue Oct 8, 2013 · 1 comment
Assignees
Milestone

Comments

@ebruchez
Copy link
Collaborator

ebruchez commented Oct 8, 2013

This feature is split out of #1081.

  1. For selection controls, new help/hint on items – In the XForms engine, we will add the support for help and hint on items (xf:item for selection controls). The help or hint on an item will only be visible for appearance="full" selection controls (radio buttons and checkboxes) for instance as shown below, and only the tooltip and popover appearances will be supported.

    screen shot 2013-06-24 at 5 11 31 pm

  2. Help/hint attached to part of the label – Allowing the message to be specific to a part of the label. This will be supported only if the label is in HTML. This will be supported only for the tooltip and popover appearances, as in that case, the tooltip or popover will show when the mouse is over that specific part of the message, by default highlighted with dotted underlining, as shown below. Issue Hints for radio buttons and checkboxes attached to only part of the label #1522 now covers this item.

    screen shot 2013-06-24 at 5 11 18 pm

  3. FB: ability to enter a message for items – The itemset editor will allow form authors to capture a message for items, which will be mapped to either a hint or a help in the edited XForms (maybe configurable, TBD).

After 2010-10-07 brainstorm, we have decided that tooltips on items should look ok as long as the arrow points to the text. This involves:

  • hint has added <span> around label text
    • this is necessary because <label> is display: block and takes the whole cell width
    • with this, the tooltip can point properly to the text and not empty space
    • if only subset of item to hint, then <span> is around that
  • items with tooltips are underlined by default
  • server and client must put class to indicate "non-empty hint" condition

screen shot 2013-10-07 at 5 11 48 pm

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.

  • We won't have the ability to have multiple (different) messages attached to different words of the same label or item.

Implementation tasks

XForms engine:

  • handle nested help/hint in itemset representation
  • output initial HTML
  • send itemset updates
  • update client-side itemsets
  • popover placement on client (@avernet)
  • show tooltip/popover on client (@avernet)

Form Builder:

  • itemset editor must allow editing help and/or hint
@ghost ghost assigned avernet Oct 8, 2013
@ghost ghost assigned ebruchez and avernet Nov 26, 2013
ebruchez added a commit that referenced this issue Nov 27, 2013
- handle nested help/hint in itemset representation
- output initial HTML
- send itemset updates
- update client-side itemsets
@avernet
Copy link
Collaborator

avernet commented Jan 31, 2014

I moved item 2 above to a separate issue (#1522), the rest is implemented, will ship in 4.5, and I am thus closing this issue.

@avernet avernet closed this as completed Jan 31, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants