[MGNLUI-6123] Switchable Field: Not usable without translated keys or label Created: 10/Aug/20  Updated: 10/Aug/20

Status: Open
Project: Magnolia UI
Component/s: dialogs, forms
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Christian Ringele Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File Switchable Field - With Labels - Working.png     PNG File Switchable Field - With Labels.png     PNG File Switchable Field - Without Label - Not usable-1.png     PNG File Switchable Field - Without Label - Not usable.png    
Issue Links:
relation
is related to MGNLUI-6124 Dialog size should be re-sizeable by ... Closed
is related to DOCU-2041 Labels: Do not provide code examples ... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled

 Description   

Situation:

Problem:

Without translated keys (cause of missing labels) the field itself is not usable at all:

 

The code used form the docu:

    switchable:
      $type: switchableField
      field:
        $type: radioButtonGroupField
        datasource:
          $type: optionListDatasource
          options:
            - name: foo
              value: foo
            - name: bar
              value: bar
      itemProvider:
        $type: jcrChildNodeProvider
      forms:
        - name: foo
          properties:
            foo:
              $type: textField
        - name: bar
          properties:
            bar:
              $type: richTextField

 

Here with Labels:


Generated at Mon Feb 12 09:33:23 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.