? ? Pending

User tests: Successful: Unsuccessful:

avatar SharkyKZ
SharkyKZ
8 Sep 2019

Summary of Changes

Use layout attribute to set layout in Joomla\CMS\Form\Field\RadioField.

Testing Instructions

View some forms contain "switcher" fields.

Expected result

Works like before.

Documentation Changes Required

Form fields using switcher class need to be updated to use joomla.form.field.radio.switcher layout instead.

avatar SharkyKZ SharkyKZ - open - 8 Sep 2019
avatar SharkyKZ SharkyKZ - change - 8 Sep 2019
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 8 Sep 2019
Category Administration com_banners com_checkin com_config com_contact com_content com_csp com_fields com_finder com_installer com_joomlaupdate com_media com_menus
avatar SharkyKZ SharkyKZ - change - 8 Sep 2019
Labels Added: ?
avatar brianteeman brianteeman - test_item - 8 Sep 2019 - Tested unsuccessfully
avatar brianteeman
brianteeman - comment - 8 Sep 2019

I have tested this item ? unsuccessfully on 3fbc5c3

The label is now doubled
The accessibility is now brokenn


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/26214.

avatar SharkyKZ
SharkyKZ - comment - 8 Sep 2019

In which form is that?

avatar brianteeman
brianteeman - comment - 8 Sep 2019

every form

avatar SharkyKZ
SharkyKZ - comment - 8 Sep 2019

I can't reproduce your results.

avatar brianteeman
brianteeman - comment - 8 Sep 2019

I tested it twice

avatar zero-24
zero-24 - comment - 10 Sep 2019

hmm looks good to me.

without the patch
image

with the patch
image

How can we reproduce the issue you mention? Or I'm missing something here?

avatar brianteeman
brianteeman - comment - 10 Sep 2019

all i did was apply the PR with patchtester

after

image

before

image

avatar zero-24
zero-24 - comment - 10 Sep 2019

hmm i have now looked into the screenshots more deeply. I have marked the differences, i found on mine. Does the additional for="jform_link_titles" break accessibility? Maybe I just not getting what the issue is as it seams to me that the label is there before and after two times, on both my and your screenshots.

after
image

before
image

avatar SharkyKZ
SharkyKZ - comment - 10 Sep 2019

I'll revert the related change.

avatar SharkyKZ
SharkyKZ - comment - 10 Sep 2019

We can't even use hiddenLabel attribute to actually hide labels anymore ?‍♂ .

avatar SharkyKZ
SharkyKZ - comment - 10 Sep 2019

Test again please.

avatar brianteeman
brianteeman - comment - 10 Sep 2019

Tried again with a pure git checkout instead of patchtester - dont get the double anymore but there is an empty div now

after

image

before

image

Otherwise its ok

avatar SharkyKZ
SharkyKZ - comment - 11 Sep 2019

Out of scope of this PR. Can happen with other fields because main layout doesn't check for empty input/label.

avatar brianteeman
brianteeman - comment - 11 Sep 2019

As its a change in behaviour created by this PR I dont see how its out of scope

avatar SharkyKZ
SharkyKZ - comment - 11 Sep 2019

This behavior is not specific to this field. Any field that returns an empty string in getLabel() or getInput() methods is going to cause empty divs to be rendered , e.g.

<field
	name="whatever"
	type="note"
/>

Outputs:

<div class="control-group">
	<div class="control-label"></div>
	<div class="controls">
			</div>
	</div>

If it was my call, I'd just drop all these workarounds and have #25085 reverted. It was done with good intentions but with wrong assumptions that the labels can only be hidden for cosmetic purposes.

avatar Quy
Quy - comment - 7 Feb 2020

Please fix conflicts.

avatar Quy Quy - test_item - 7 Feb 2020 - Tested successfully
avatar Quy
Quy - comment - 7 Feb 2020

I have tested this item successfully on bd7ff1b


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/26214.

avatar jwaisner jwaisner - test_item - 10 Feb 2020 - Tested successfully
avatar jwaisner
jwaisner - comment - 10 Feb 2020

I have tested this item successfully on bd7ff1b


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/26214.

avatar jwaisner jwaisner - change - 10 Feb 2020
Status Pending Ready to Commit
avatar jwaisner
jwaisner - comment - 10 Feb 2020

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/26214.

avatar rdeutz rdeutz - change - 11 Feb 2020
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2020-02-11 10:19:31
Closed_By rdeutz
Labels Added: ?
avatar rdeutz rdeutz - close - 11 Feb 2020
avatar rdeutz rdeutz - merge - 11 Feb 2020

Add a Comment

Login with GitHub to post a comment