Certain SCSS contained in 'extensions/ux_styleguide/stylesheets/ux_styleguide/drupal/seven/_drupal-7.scss' is causing undesired behavior. Specifically, the 'input[id^="edit-submit"]' selector isn't sufficiently targeted and causes undesired styling of elements on Webform submission pages.

Under on a submission's edit page ('node/[nid]/submission/[sid]/edit'), the styling from '_drupal-7.scss' is applied to any element with an ID beginning with 'edit-submit', including '#edit-submitted-name' and '#edit-submitted-checkbox'. This renders 1) the submissions page confusing and 2) checkboxes and radio buttons unusable on the submission edit page.

I am not familiar with the ux_styleguide, which is located inside the extensions directory. I am unable to find documentation for the ux_styleguide, which makes it difficult to further troubleshoot this issue or to offer a patch.

Why is it necessary to use the 'input[id^="edit-submit"]' selector? Does input[type="submit"] not work?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Chris Burge’s picture

Chris Burge’s picture

Title: ux_styleguide » '_drupal-7.scss' SCSS from 'ux_styleguide' isn't Sufficiently Targeted
Chris Burge’s picture

The relevant commits are provided below:

commit 7cb535f5017792c4d20a2d98529951e3f4b94b45
Author: Al Steffen
Date: Tue Oct 15 11:08:16 2013 -0400

Add in the updated extension with new features and better rtl support.

- Added some variables to prevent some legacy spacing issues.
- Make use of more functions ans variables in the ux_styleguide extension.

commit 10f892ce94d4891e1c8d1345ca21f510cc64b787
Author: Al Steffen
Date: Mon Oct 21 14:20:10 2013 -0400

Perform a scrubbing on forms and commons elements to get more comons elements in drupal looking good.

commit 9d92f9a69d2a30779ab08b6c4420052f731fe16a
Author: Al Steffen
Date: Mon Oct 28 16:07:50 2013 -0400

Add in missing commits from the last commit.

Chris Burge’s picture

I am attaching two patches, one for 7.x-2.0-alpha2 and one for 7.x-2.x. The patches remove the 'input[id^="edit-submit"]' selector. These are intended as a hot fix until one of the maintainers can address this issue.

bryanbraun’s picture

I've tested the 7.x-2.x patch (2416125-4-untargeted-selector--dev.patch) and confirmed that it's working well for my site. +1 on this one.

Bcwald’s picture

Is there a place that this is happening OOTB? I cannot replicate it, though the code looks pretty suspect to me. I just want to be able to see an example to test against it.

Chris Burge’s picture

@Bcwald - I didn't run into any instances running Ember on a standard Drupal install (Drupal core, Standard install profile, Ember as admin theme) where this styling affected usability. Where I noticed it was when I viewed the edit page for Webform submissions (running Webform 7.x-4.2).

Can you shed any light on 'ux_styleguide'?

Chris Burge’s picture

Status: Active » Needs review
FileSize
24.57 KB

Updated patch against 7.x-2.0-alpha4