Currently a condition's config form wrapper is only uniquely identified by the generated element id. This is not suitable to use in CSS selectors as it contains the $delta in the "id".

My proposed fix is to add the $condition_name to the container-inline element as a CSS class.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

cravecode’s picture

The patch is pretty noninvasive and uses Drupal's drupal_clean_css_identifier function on the $condition_name variable to append to the container element's CSS classes.

cravecode’s picture

Corrected spacing between clearfix and the appended $condition_name

jkuma’s picture

Thanks for your patch cravecode, I'll take a look at it this afternoon.

best, jo

jkuma’s picture

Your patch was not working because the "$condition_name" variable doesn't exists at this level.

I've made an another patch to solve your issue.

Status: Needs review » Needs work

The last submitted patch, 4: inline_conditions-condition_name_css_class-2204733-4.patch, failed testing.

jkuma’s picture

Version: 7.x-1.0-alpha3 » 7.x-1.x-dev
Assigned: cravecode » jkuma
Status: Needs work » Needs review
jkuma’s picture

jkuma’s picture

Status: Needs review » Fixed

Commit pushed in dev branch.

Status: Fixed » Closed (fixed)

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