Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Refactor HelpfulHints component #7234

Merged
merged 1 commit into from
Feb 15, 2017
Merged

Refactor HelpfulHints component #7234

merged 1 commit into from
Feb 15, 2017

Conversation

cezaraugusto
Copy link
Contributor

@cezaraugusto cezaraugusto commented Feb 14, 2017

Test Plan:

  • Open about:preferences
  • On bottom-left corner there's helpfulHints component
  • Compared to previous version (before refactor), behavior/UI should be the same

Description

  • Submitted a ticket for my issue if one did not already exist.
  • Used Github auto-closing keywords in the commit message.
  • Added/updated tests for this change (for new code or code which already has tests).
  • Ran git rebase -i to squash commits (if needed).

Auditors: @luixxiul

Fix #7232

helpfulHints: {
display: 'block',
width: '100%',
color: '#eee',
Copy link
Contributor

@luixxiul luixxiul Feb 14, 2017

Choose a reason for hiding this comment

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

I know this comes from the original code but I thought making this white and setting #eee to elements which require it should be better.

But #eee is not used anywhere so this can be just replaced with white.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok, thanks

<span className={css(styles.hintsTitle)} data-l10n-id='hintsTitle' />
<span className='fa fa-refresh' onClick={this.props.refreshHint}
style={{
color: 'white',
Copy link
Contributor

Choose a reason for hiding this comment

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

This can be removed based on that.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I had to keep it so FA icon can be white.

@luixxiul
Copy link
Contributor

@cezaraugusto I created a commit as a suggestion: https://github.com/luixxiul/browser-laptop/commit/6be5e72a1d1a81944184665c93b0d0e39482eb6f. Please cherry-pick it if you like it 😄

@cezaraugusto
Copy link
Contributor Author

super clean now, thanks

@luixxiul
Copy link
Contributor

++

Copy link
Member

@bsclifton bsclifton left a comment

Choose a reason for hiding this comment

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

This is awesome, great job 😄

@@ -1174,22 +1175,6 @@ class PreferenceNavigationButton extends ImmutableComponent {
}
}

class HelpfulHints extends ImmutableComponent {
Copy link
Member

Choose a reason for hiding this comment

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

++ for making preferences.js less huge too

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants