-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Add css-dependency-comments based on jQuery Mobile #1440
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Need someone to review the CSS references. Don't worry with the paths for now. It's important that all CSS files are being referenced and they are correct (each JS is correctly referencing its CSS'es). |
@@ -13,6 +13,9 @@ | |||
//>>description: The core of jQuery UI, required for all interactions and widgets. | |||
//>>docs: http://api.jqueryui.com/category/ui-core/ | |||
//>>demos: http://jqueryui.com/ | |||
//>>css.structure: ../themes/base/base.css |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why would we reference this anywhere? Its just a bunch of @import
statements.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
True, removed by ed74d55
@jzaefferer said:
I'm repeating his question here, because it will get lost as soon as I push an update. |
Regarding |
Wait and see is fine to me. With the (more) explicit dependencies in place, it'll be reasonable to change. |
So in general things that don't actually depend on a css file should not depend on it in comments here either I would say. Any other use kinda breaks the meaning of "dependency". |
Removed |
I don't think this is true at all actually. What I said was that we discussed, and any widget which depends on it, will include it explicitly. This is not yet an issues however as no widget does. It is only an issue once the re-write for button lands and i will update that PR once this one lands. |
Ok. |
Based on the conversation we had so far, below is the CSS dependency list I understood for each UI Core
Interactions
Widgets
Effects
@scottgonzalez @jzaefferer @arschmitz please, can you confirm? |
Droppable is missing, datepicker is listed twice. Do interactions actually depend on |
There's no droppable.css. Does it still depend on core.css? Or no CSS at all? |
I've updated my above comment removing the duplicate. |
You've listed other components with "none", so it makes sense to list droppable as well. Afaik none of the interactions except resizable need |
@jzaefferer @rxaviers that had been my understanding on interactions as well. Only resizable needs it for the icon. |
Great, thank you @jzaefferer and @arschmitz. I've updated my above comment listing droppable and updating other interactions. |
Looks good to me |
Please, could you re-check? |
Looks correct. |
Great thanks |
- Handle CSS dependencies from JS comments (based on jQuery Mobile); - Use archive-packager, builder-amd and builder-jquery-css to build UI 1.12.0 download package; Fixes #178 Fixes #255 Ref jquery/jquery-ui#1440
Updated |
https://gist.github.com/rxaviers/01ab3bc43bf9f42c769f can be used to test building the CSS bundle. |
@@ -12,6 +12,8 @@ | |||
//>>description: Displays buttons to easily input numbers via the keyboard or mouse. | |||
//>>docs: http://api.jqueryui.com/spinner/ | |||
//>>demos: http://jqueryui.com/spinner/ | |||
//>>css.structure: ../themes/base/spinner.css |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing core.css
Can you rebase this on master? |
Rebased |
c24f6f0
to
edf7dc4
Compare
Looks like the structure.css file is just concatenated, that is, all the header comments are still there. Do we keep those and leave them to the minifier to remove? |
The scope of this PR is making sure CSS dependencies are being correctly defined. Although, that's a good question for jquery/download.jqueryui.com#178 (or its PR jquery/download.jqueryui.com#256). Currently, the individual banners are stripped out when they are concatenated. So, we can keep doing it unless we don't want to worry about it anymore. |
Seems fine to ignore that. Unless someone else wants to review this as well, this is good to land. |
On today's meeting, the decision was to drop More details can be found on http://irc.jquery.org/%23jquery-meeting/default_%23jquery-meeting_20150211.log.html |
I don't think that was the consensus. As I understood it: We keep the comments in the JS files. We do nothing with them, for now. We have the option to warn the user, using the DB UI, when they're selecting components that soft-depend on the theme while no theme is selected. The latter should be filed as a separate ticket. |
@jzaefferer Correct, that's what was decided. |
Ok, so #1440 (comment) will be kept. |
So I think this is correct. @jzaefferer @arschmitz @rxaviers Can you all confirm? |
Confirmed. The changes are correct according to what we have defined. |
👍 |
- Handle CSS dependencies from JS comments (based on jQuery Mobile); - Use archive-packager, builder-amd and builder-jquery-css to build UI 1.12.0 download package; Fixes #178 Fixes #255 Ref jquery/jquery-ui#1440
- Handle CSS dependencies from JS comments (based on jQuery Mobile); - Use archive-packager, builder-amd and builder-jquery-css to build UI 1.12.0 download package; Fixes #178 Fixes #255 Ref jquery/jquery-ui#1440
- Handle CSS dependencies from JS comments (based on jQuery Mobile); - Use node-packager, builder-amd, builder-jquery-css, and jquery-ui-themeroller to build UI 1.12.0 download package; - Cache support; Fixes #178 Fixes #255 Ref jquery/jquery-ui#1440
Ref #1029
Ref jquery/download.jqueryui.com#178