Skip to content
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

Fix icon styling across Share. Improve style setup in Cosmos. #769

Merged
merged 11 commits into from Aug 2, 2023

Conversation

pablo-mayrgundter
Copy link
Member

@pablo-mayrgundter pablo-mayrgundter commented Jul 28, 2023

This PR touches a lot of files, but accomplishes a couples simple changes:

  1. Icons are now used uniformly:
  • No custom sizing on icons with sx
  • All fills removed from SVG files, to allow style fill override
  • All SVG headers normalized
  1. Cosmos fixture setup now works like Share, so e.g. AboutDialog renders the same in both.

https://deploy-preview-769--bldrs-share.netlify.app/cosmos/?fixtureId=%7B%22path%22%3A%22src%2FComponents%2FAbout%2FAboutDialog.fixture.jsx%22%7D

There are a couple import cleanups as well.

@netlify
Copy link

netlify bot commented Jul 28, 2023

Deploy Preview for bldrs-share ready!

Name Link
🔨 Latest commit 9ce9a7d
🔍 Latest deploy log https://app.netlify.com/sites/bldrs-share/deploys/64caa66c6eb14c00082e2f2d
😎 Deploy Preview https://deploy-preview-769--bldrs-share.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

…le subtypes. Fix croping of Bldrs logo in About panel. Remove hardcoded fill from all SVG icons. Set fill set theme level.
…le subtypes. Fix croping of Bldrs logo in About panel. Remove hardcoded fill from all SVG icons. Set fill set theme level.
@pablo-mayrgundter pablo-mayrgundter changed the title Fix style setup in AboutDialog.fixture Fix icon styling across Share. Improve style setup in Cosmos. Aug 1, 2023
@pablo-mayrgundter
Copy link
Member Author

pablo-mayrgundter commented Aug 1, 2023

@OlegMoshkovich PTAL

Both at Share root, and /cosmos. Linked in description

@pablo-mayrgundter pablo-mayrgundter marked this pull request as ready for review August 1, 2023 20:02
@OlegMoshkovich
Copy link
Member

OlegMoshkovich commented Aug 2, 2023

image

Removing individual styles breaks visual consistency.
I don't mind approving this work and fixing the visual inconsistency in the separate PR.

…all fixtures. Upgrade svgr plugins and uniform config between esbuild and cosmos/webpack for uniform icon rendering. Simplify some components.
@pablo-mayrgundter
Copy link
Member Author

Alright, as discussed.. more fixups, and found a key issue in our svg handling. As usual, Ogali was right :)

https://discord.com/channels/853953158560743424/984184622621540352/1136334718175031296

Looking good for me, but lots of changes. lmk!

Signed-off-by: Pablo Mayrgundter <pablo.mayrgundter@gmail.com>
@pablo-mayrgundter pablo-mayrgundter merged commit ed226ff into bldrs-ai:main Aug 2, 2023
5 of 7 checks passed
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.

None yet

2 participants