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

Normalize buttons in about:preferences #9487

Merged
merged 2 commits into from
Jun 19, 2017
Merged

Normalize buttons in about:preferences #9487

merged 2 commits into from
Jun 19, 2017

Conversation

cezaraugusto
Copy link
Contributor

@cezaraugusto cezaraugusto commented Jun 15, 2017

Addresses #9223
Fixes #9543

Submitter Checklist:

  • 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).
  • Tagged reviewers and labelled the pull request as needed.

Don't need PR #9357 but will preferably land after that

Auditors: @luixxiul
Test Plan:
Buttons inside prefs should look the same across tabs

Reviewer Checklist:

Tests

  • Adequate test coverage exists to prevent regressions
  • Tests should be independent and work correctly when run individually or as a suite ref
  • New files have MPL2 license header

@luixxiul
Copy link
Contributor

luixxiul commented Jun 18, 2017

The buttons on bitcoinDashboard.js are regressed:

screenshot 2017-06-18 15 30 01

See: ee832b2#diff-799b11467a9bfc86f7dbbf11fcaee159R477

panelButton: {
    minWidth: '180px !important'
},

which should be addressed with panelItem on

// this.props.panelItem && styles.browserButton_panelItem,
right?

By applying it the buttons should be look like this:

screenshot 2017-06-18 15 37 31

@luixxiul
Copy link
Contributor

Also @cezaraugusto, would you please create an issue to track the TODOs?

Copy link
Contributor

@luixxiul luixxiul left a comment

Choose a reason for hiding this comment

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

LGTM except

Auditors: @luixxiul
Test Plan:
Buttons inside prefs should look the same across tabs
@cezaraugusto
Copy link
Contributor Author

cezaraugusto commented Jun 19, 2017

thanks, updated

would you please create an issue to track the TODOs?

sorry but which to-dos?

@luixxiul
Copy link
Contributor

@@ -312,6 +312,13 @@ class AboutStyle extends ImmutableComponent {
<BrowserButton iconOnly icon={'{'}globalStyles.appIcons.private{'}'} size='60px' color='red' />
</Code></Pre>

<BrowserButton groupedItem secondaryColor panelItem l10nId='panelItem' onClick={this.onEnableAutoplay} />
<BrowserButton groupedItem primaryColor panelItem l10nId='panelItem' onClick={this.onEnableAutoplay} />
Copy link
Contributor

@luixxiul luixxiul Jun 19, 2017

Choose a reason for hiding this comment

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

Maybe this.copyToClipboard and this.props.showQRcode look better, which are actually only used on bitcoinDashboard.js for now.

<BrowserButton groupedItem primaryColor panelItem l10nId='panelItem' onClick={this.onEnableAutoplay} />
<Pre><Code>
&lt;BrowserButton groupedItem secondaryColor panelItem l10nId='panelItem' onClick={'{this.onEnableAutoplay}'} />{'\n'}
&lt;BrowserButton groupedItem primaryColor panelItem l10nId='panelItem' onClick={'{this.onEnableAutoplay}'} />
Copy link
Contributor

Choose a reason for hiding this comment

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

Ditto.

@cezaraugusto
Copy link
Contributor Author

ok updated example. re #9487 (comment) I preferred to create a tracking issue for prefs refactoring: #9558, given we'll naturally remove those comments once refactored. lmk if that sounds good to you

Copy link
Contributor

@luixxiul luixxiul left a comment

Choose a reason for hiding this comment

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

LGTM!

@cezaraugusto cezaraugusto merged commit ddc30fd into master Jun 19, 2017
@cezaraugusto cezaraugusto deleted the buttons/9486 branch June 19, 2017 08:22
cezaraugusto added a commit that referenced this pull request Jul 24, 2017
Normalize buttons in about:preferences
@bsclifton bsclifton added this to the 0.18.x (Beta Channel) milestone Jul 24, 2017
@bsclifton bsclifton removed this from the 0.19.x (Developer Channel) milestone Jul 24, 2017
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.

3 participants