Ticket #2532168 (closed defect)

Reporter


Scott Steffens
Opened: 04/18/12
Last modified: 08/1/12
Status: closed
Type: defect
Resolution: fixed

Owner


Dav Glass
Target Release: 3.6.0
Priority: P3 (normal)
Summary: YUI config does not properly override skins
Description:

We have a sample of our CONFIG parameter that we pass in here:

http://jsfiddle.net/UYEvU/

We override some skins with an empty array to avoid loading the default skins.

Repro:
Run the above on both 3.4.1 and 3.5.0 and watch the CSS tab of your browser's inspector.

Actual:
3.4.1 obeys the override and does not load widget-base.css or widget-stack.css
3.5.0 does not obey the override and loads http://yui.yahooapis.com/combo?3.5.0/build/widget-base/assets/skins/sam/widget-base.css&3.5.0/build/widget-stack/assets/skins/sam/widget-stack.css

This results in a large performance degradation; our hack for the meantime is to edit the yui/yui.js file directly.

Type: defect Observed in Version: 3.5.0
Component: Loader Severity: S3 (normal)
Assigned To: Dav Glass Target Release: 3.6.0
Location: Library Code Priority: P3 (normal)
Tags: skins config Relates To:
Browsers: N/A
URL: http://jsfiddle.net/UYEvU/
Test Information:

Change History

Dav Glass

Posted: 04/18/12
  • component changed from Skins to Loader
  • location changed to Library Code
  • milestone changed to 3.6.0
  • owner changed from Jeff Conniff to Dav Glass
  • priority changed to P3 (normal)
  • status changed from accepted to assigned

Dav Glass

Posted: 04/18/12
  • sprint changed to backlog
  • status changed from assigned to accepted

jdr99

Posted: 04/18/12

any chance we could get a gallery module to fix this sooner than 3.6.0? pretty please? :)

Dav Glass

Posted: 04/18/12

I might be able to provide a "patch" but a gallery module won't help any since it's in Loader and Loader is needed to process the modules.

jdr99

Posted: 04/18/12

that would be great! currently we're modifying yui.js and changing the skinnable attribute to false for those modules whose css we don't want.

Dav Glass

Posted: 04/18/12
  • status changed from accepted to infoneeded

Can you use the seed file and config in this Fiddle and give it a test for me?

http://jsfiddle.net/davglass/g4ZvH/1/

Martin An

Posted: 04/18/12
  • status changed from infoneeded to assigned

I've tested this and it worked. Can we get both yui.js and yui-min.js?

Dav Glass

Posted: 04/18/12
  • status changed from assigned to accepted

It's built, so you can use any of them -min/-debug or .js..

I'll get this merged into master and pushed to the main repo shortly.

Martin An

Posted: 04/18/12

Awesome, thank you.

Dav Glass

Posted: 04/18/12

Pushed to our build machine, should be on Github in 10-15 minutes or so.

Dav Glass

Posted: 04/18/12
  • resolution changed to fixed
  • status changed from accepted to checkedin

Fixes #2532168 - Override skins not being applied
View Commit: 4fd5ab0e845b0ffbd8abbfcf3314c4d18c0956ac

Dav Glass

Posted: 04/18/12

Ref #2532168 - Skip the auto skin for internal modules
View Commit: eeb575cbc3710b24b48a87ec3a05dfa8ccc6172c

Walter Rumsby

YUI Contributor

Posted: 05/30/12

It looks like 'console' also uses 'sam' and might need to be changed like 'test'.

Dav Glass

Posted: 05/30/12

@Walter - What do you mean?

Walter Rumsby

YUI Contributor

Posted: 05/30/12

Actually, seems to be a problem in my environment. I stumbled across this and thought I had worked around it locally, but had problems with console not behaving the way I expected. Patched our local YUI 3.5 and all is good.

Jenny Donnelly

YUI Developer

Posted: 08/1/12
  • status changed from checkedin to closed

Shipped in 3.6.0. Marking closed/fixed.