Problem

Webform elements support help text, descriptions, and tooltips. The problem with all three of the options is that long and complex descriptions are not displayed properly and/or consumes too much screen real estate.

Solution

Long complex descriptions should be available toggle-able more content.

Tasks

  • Add #more and #more_title properties
  • Add element.default_more_title to webform.settings.
  • Update scheme
  • Move #help, #description, #description_display to Element Help/Description details container.
  • Add #more and #more_title to translations
  • Add webform.element.more to libraries with CSS/JS
  • Update the Style Guide
  • Make sure 'description' is not broken when moved.
  • Create test form.

Comments

jrockowitz created an issue. See original summary.

jrockowitz’s picture

Title: Add 'More'' hide/show text support to elements » Add 'More' hide/show text support to elements
Issue summary: View changes

  • jrockowitz committed d8b456d on 2914153-element-more
    Issue #2914153: Add 'More' hide/show text support to elements
    
jrockowitz’s picture

Status: Active » Needs review
StatusFileSize
new24.52 KB

  • jrockowitz committed 82cc28a on 2914153-element-more
    Issue #2914153: Add 'More' hide/show text support to elements
    

  • jrockowitz committed 9b3238e on 2914153-element-more
    Issue #2914153: Add 'More' hide/show text support to elements
    
jrockowitz’s picture

StatusFileSize
new30.01 KB

  • jrockowitz committed 2d11096 on 8.x-5.x
    Issue #2914153 by jrockowitz: Add 'More' hide/show text support to...
jrockowitz’s picture

Status: Needs review » Fixed

  • jrockowitz committed 25b5adf on 8.x-5.x
    Issue #2914153: Add 'More' hide/show text support to elements
    
esod’s picture

I confirm that #more, #more_title, #help, #description, and #description_display are working as expected. WebformElementMoreTest runs successfully as well.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.