Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore: use emotion for styling (pt. 5)#10261

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
aslilac merged 37 commits intomainfromemotional-damage-5
Oct 16, 2023
Merged

Conversation

aslilac
Copy link
Member

@aslilacaslilac commentedOct 13, 2023
edited
Loading

Part of#9924
Following#10149

Progress 56_0

From starting with 157 usages of makeStyles across 154 files, this changes brings us down to 69 usages across as many files.

@aslilacaslilac marked this pull request as ready for reviewOctober 16, 2023 16:46
@aslilacaslilac requested review froma team,BrunoQuaresma,Kira-Pilot andParkreiner and removed request fora teamOctober 16, 2023 16:46
Copy link
Collaborator

@BrunoQuaresmaBrunoQuaresma left a comment

Choose a reason for hiding this comment

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

If the stories are ok, I'm ok! 👍

@aslilacaslilac merged commiteaea918 intomainOct 16, 2023
@aslilacaslilac deleted the emotional-damage-5 branchOctober 16, 2023 18:41
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsOct 16, 2023
@aslilacaslilac linked an issueOct 16, 2023 that may beclosed by this pull request
Copy link
Member

@ParkreinerParkreiner left a comment

Choose a reason for hiding this comment

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

Sorry – wasn't able to finish the review until now. Everything looks good as usual – just had some Emotion questions

},
},
const styles = {
root: (theme) => css`
Copy link
Member

Choose a reason for hiding this comment

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

Just a question for my own understanding: is there a difference between an interpolation function returning an object, vs a tagged css template literal? Is the main use case to enable the& selectors, or would something like this still be possible via object syntax?

conststyles={"&:hover":(theme)=>({    background-color:${theme.palette.background.paper};})};

Stacktrace
<CopyButton
buttonClassName={styles.copyButton}
buttonClassName={css`
Copy link
Member

@ParkreinerParkreinerOct 16, 2023
edited
Loading

Choose a reason for hiding this comment

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

I think there's some nuance that I'm missing. Is there anything stopping this style from being defined outside the component, and being defined via the interpolation function syntax that some of the other styles are using?

I don't expect it to matter much performance-wise – just curious

Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@ParkreinerParkreinerParkreiner left review comments

@BrunoQuaresmaBrunoQuaresmaBrunoQuaresma approved these changes

@Kira-PilotKira-PilotAwaiting requested review from Kira-Pilot

Assignees

@aslilacaslilac

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

ReplacemakeStyles
3 participants
@aslilac@BrunoQuaresma@Parkreiner

[8]ページ先頭

©2009-2025 Movatter.jp