Skip to content

feat: Sort media query stylesheets#141

Merged
ling1726 merged 44 commits into
mainfrom
feat/media-sorting
Jun 21, 2022
Merged

feat: Sort media query stylesheets#141
ling1726 merged 44 commits into
mainfrom
feat/media-sorting

Conversation

@ling1726

@ling1726 ling1726 commented Jun 17, 2022

Copy link
Copy Markdown
Contributor

Adds compareMediaQueries option to createDOMRenderer which will be
used to sort media query stylesheets.

Updates getStyleSheetForBucket to use comparators to simplify the job
of finding the new insertion point of a stylesheet.

Fixes #129

@github-actions

github-actions Bot commented Jun 17, 2022

Copy link
Copy Markdown
Contributor

📊 Bundle size report

Package & Exports Baseline (minified/GZIP) PR Change
react
makeStaticStyles (runtime)
8.638 kB
3.771 kB
8.982 kB
3.908 kB
344 B
137 B
react
makeStyles + mergeClasses (runtime)
21.816 kB
8.202 kB
22.154 kB
8.333 kB
338 B
131 B
react
makeStyles + mergeClasses (build time)
3.2 kB
1.448 kB
3.535 kB
1.595 kB
335 B
147 B
Unchanged fixtures
Package & Exports Size (minified/GZIP)
core
makeStyles + mergeClasses (build time)
1.8 kB
861 B
core
makeStyles + mergeClasses (runtime)
20.394 kB
7.612 kB
🤖 This report was generated against 09a2d3b9727100a29f6e73603c154b1a7c2727b3

@ling1726 ling1726 marked this pull request as ready for review June 20, 2022 17:06
@ling1726 ling1726 requested a review from a team as a code owner June 20, 2022 17:06
Comment thread apps/benchmark/src/implementations/griffel/Box.tsx Outdated
Comment thread packages/webpack-extraction-plugin/src/webpackLoader.test.ts Outdated
Comment thread packages/core/src/renderer/createDOMRenderer.ts Outdated
Comment thread packages/core/src/renderer/rehydrateRendererCache.test.ts
Comment thread packages/core/src/renderer/getStyleSheetForBucket.ts Outdated
Comment thread packages/core/src/renderer/getStyleSheetForBucket.ts Outdated
Comment thread packages/core/src/renderer/getStyleSheetForBucket.ts
Comment thread packages/core/src/renderer/getStyleSheetForBucket.test.ts
@ling1726 ling1726 requested a review from layershifter June 21, 2022 14:37
Comment thread packages/core/src/renderer/createDOMRenderer.ts
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.

makeStyles: media queries should be sorted

2 participants