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

[docs] Migrate to emotion landing (part1) #26498

Closed
wants to merge 4 commits into from

Conversation

vicasas
Copy link
Member

@vicasas vicasas commented May 29, 2021

Migrate to emotion the sections Pro, QuickWord, Quotes and Users

Related #16947

@mui-pr-bot
Copy link

mui-pr-bot commented May 29, 2021

No bundle size changes (experimental)

Generated by 🚫 dangerJS against fb63d6e

@vicasas
Copy link
Member Author

vicasas commented May 29, 2021

@oliviertassinari Should there be the spotify logo in the Users section? as is currently in v4

@oliviertassinari
Copy link
Member

@vicasas No need to migrate these components, we are trashing them with #26364.

@vicasas
Copy link
Member Author

vicasas commented May 29, 2021

It's true! I did not remember. I'll close the PR.

@oliviertassinari
Copy link
Member

@vicasas But feel free to migrate the other parts of the projects. This instance seems to be an exception

@oliviertassinari
Copy link
Member

oliviertassinari commented May 30, 2021

I have updated #16947 with the last usage of makeStyles/withStyles I could identify as making sense to replace.

@vicasas
Copy link
Member Author

vicasas commented May 31, 2021

@oliviertassinari That's great! I will try to focus on those during these days. Thanks.

key={user.caption}
src={`/static/images/users/${user.logo}`}
alt={user.caption}
className={clsx(classes.img, classes[user.class])}
sx={{ my: 1.5, mx: 3, ...styles[user.class] }}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @oliviertassinari @vicasas

in this case can we add this library @emotion/css and
Sample code


import { cx, css } from '@emotion/css'

const cls1 = css`
  font-size: 20px;
  background: green;
`
const cls2 = css`
  font-size: 20px;
  background: blue;
`

<div className={cx(cls1, cls2)} />

@oliviertassinari
emotion provide number library which can useful for styling or in latest material ui provide will those option?

@zannager zannager added the docs Improvements or additions to the documentation label Jan 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Improvements or additions to the documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants