Skip to content

UIKit Refactor Part 3: Bug Fixes + ITCSS Folder Reorganization #934

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

sghoweri
Copy link
Contributor

  1. Adds number prefixes to UIKit's ITCSS folders to make it easier to manage which layers of the CSS correspond with which level of specificity / heavy-handedness

Fixes the ordering of the utilities, vendor and theme layers to utilities have the highest specificity, 3rd party vendor styles can get overwritten by components if needed, and theming-level styles build off of the component base styles established.

  1. Fixes the typeahead dropdown styles (broken on dev currently)

  2. Updates the ish controls to vertically center in the header (which, if the text in the top-level nav items wraps to more than one line, looks broken otherwise)

  3. Fixes a bunch of bugs with PL's modal / code panel on dev -- besides now opening and closing properly, it now animates primarily based off of CSS transforms so the panel itself animates with a lot less Jank! #jankFree

^ should address the code panel bugs @bmuenzenmeyer mentioned here

@sghoweri sghoweri changed the title UIKit Refactor Part 3: Bug Fixes + ITCSS Folder Reorg UIKit Refactor Part 3: Bug Fixes + ITCSS Folder Reorganization Aug 24, 2018
@sghoweri
Copy link
Contributor Author

@bmuenzenmeyer looks like Prettier auto-formatted a ton of Sass here with the 1:1 folder rename... much more than the handful of Sass files with actual changes here:

Is this ok (expected)? Just want to make sure this all makes sense!

…uikit-refactor--reorganize-sass-imports-plus-bug-fixes
@bmuenzenmeyer
Copy link
Member

I have yet to look formally at this but wanted to make mention that the CSS organization has always been the responsibility of @bradfrost and I want to ensure he is comfortable with what is changing.

@bmuenzenmeyer
Copy link
Member

Also I think it's high time we ignore sass scss within https://github.com/pattern-lab/patternlab-node/blob/dev/.prettierignore

My interest in prettier within the monorepo begins and ends with js

@sghoweri
Copy link
Contributor Author

Yeah, we just have Prettier and Eslint targeting our JS files in Bolt’s monorepo (and enforce linting / formatting for .scss files via our Stylelint config).

That’d probably be a better solution here.

@bradfrost
Copy link
Member

👋Heya @sghoweri @bmuenzenmeyer, just ducking in here to say this is on my radar to take a look at; I just need to find a little time to do it. Looks exciting!

@bmuenzenmeyer
Copy link
Member

That’d probably be a better solution here.

#910 already exists for this. A good idea then, forgotten, a good idea now 🤷‍♂️

@bmuenzenmeyer
Copy link
Member

Looks good overall @sghoweri thank you so much!

Any idea why there are files with what looks to be cache-busting names in the output?

https://github.com/pattern-lab/patternlab-node/pull/934/files#diff-78b520855132cfcf67e87053bd35070e
https://github.com/pattern-lab/patternlab-node/pull/934/files#diff-d387402df46a10a801c2b0faa84e169b

@sghoweri
Copy link
Contributor Author

Any idea why there are files with what looks to be cache-busting names in the output?

https://github.com/pattern-lab/patternlab-node/pull/934/files#diff-78b520855132cfcf67e87053bd35070e
https://github.com/pattern-lab/patternlab-node/pull/934/files#diff-d387402df46a10a801c2b0faa84e169b

@bmuenzenmeyer I’m pretty sure that’s related to the extract config option in the Webpack plugin handling the Critical CSS generation:
https://github.com/pattern-lab/patternlab-node/blob/dev/packages/uikit-workshop/webpack.config.js#L163 — which “Extracts inlined styles from referenced stylesheets”.

Basically when that option is enabled, the Critical npm package will create a new CSS file with the inlined Critical CSS omitted from it, with the new hashed filename getting automatically referenced in the HTML that’s wired up.

No changes to CSS = same hashed filename.

Not all that different than cache busting in Webpack with dynamically generates bundles that get asynchronously / conditionally imported (aka dynamic imports)

Thoughts?

@bmuenzenmeyer
Copy link
Member

Makes sense. The missing piece was digging for this in the diff

image

All good! Great work!

💃

@bmuenzenmeyer bmuenzenmeyer merged commit e1d25d4 into pattern-lab:dev Aug 29, 2018
antonia-rose pushed a commit to quelltexterin/nemo-uikit-workshop that referenced this pull request Apr 12, 2023
…or--reorganize-sass-imports-plus-bug-fixes

UIKit Refactor Part 3: Bug Fixes + ITCSS Folder Reorganization
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants