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

Remove Radium from ScrollableList and ItemLoopToggle (Animation Tab elements) #47820

Merged
merged 3 commits into from
Aug 29, 2022

Conversation

mikeharv
Copy link
Contributor

@mikeharv mikeharv commented Aug 25, 2022

This is part of the work to stop using Radium. See https://docs.google.com/spreadsheets/d/1chviZU39Qej9_xrc2lrcRrydKJKcs-W6Q0ehzVtH6bg/edit#gid=1128290845 for all components using Radium.
This PR includes changes to two animation tab components: ScrollableList and ItemLoopToggle.

Scrollable List:
2022-08-25 14-32-14 2022-08-25 14_32_39

ItemLoopToggle:
2022-08-25 14-33-08 2022-08-25 14_33_34

Links

Testing story

No regressions found. Compared styles for each styled element in the DOM.

Deployment strategy

Follow-up work

Privacy

Security

Caching

PR Checklist:

  • Tests provide adequate coverage
  • Privacy and Security impacts have been assessed
  • Code is well-commented
  • New features are translatable or updates will not break translations
  • Relevant documentation has been added or updated
  • User impact is well-understood and desirable
  • Pull Request is labeled appropriately
  • Follow-up work items (including potential tech debt) are tracked and linked

@mikeharv mikeharv requested a review from a team August 25, 2022 18:34
onClick={this.toggleClicked}
>
<img src={iconImageSrc} style={styles.loopIconStyle} />
<img src={iconImageSrc} className={style.loopIconStyle} />
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't see loopIconStyle anywhere (in previous version or new version), am I missing something?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Huh, good point. I think I was on autopilot for this change and missed that. Seems safe enough to just remove this.

@@ -30,21 +30,15 @@ class ItemLoopToggle extends React.Component {
return (
<OverlayTrigger overlay={tooltip} placement="bottom" delayShow={500}>
<div
style={[styles.loopToggleStyle, this.props.style]}
style={{...this.props.style}}
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: style={this.props.style}

}

.margins {
margin: 4;
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: 4px? Does this work without specifying units?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It most certainly did not, but it should now!

@bencodeorg
Copy link
Contributor

Maybe update PR title to describe what components you're removing Radium from?

@mikeharv
Copy link
Contributor Author

Maybe update PR title to describe what components you're removing Radium from?

Whoops, great call! :)

@mikeharv mikeharv changed the title remove Radium Remove Radium from ScrollableList and ItemLoopToggle (App Lab Design elements) Aug 25, 2022
@mikeharv mikeharv changed the title Remove Radium from ScrollableList and ItemLoopToggle (App Lab Design elements) Remove Radium from ScrollableList and ItemLoopToggle (Animation Tab elements) Aug 25, 2022
className={this.props.className}
style={[staticStyles.root, this.props.style]}
className={classNames(this.props.className, style.root)}
style={{...this.props.style}}
Copy link
Contributor

Choose a reason for hiding this comment

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

Sorry one more destructuring nit I missed

@mikeharv mikeharv merged commit 29d4006 into staging Aug 29, 2022
@mikeharv mikeharv deleted the mike/remove-radium-from-AnimationTab branch August 29, 2022 17:30
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