Skip to content
This repository has been archived by the owner. It is now read-only.

Refactor download.js with Aphrodite #7258

Merged
merged 1 commit into from Feb 23, 2017
Merged

Refactor download.js with Aphrodite #7258

merged 1 commit into from Feb 23, 2017

Conversation

@luixxiul
Copy link
Contributor

luixxiul commented Feb 15, 2017

including:

  • Created <List> and <DownloadList> in list.js
  • Copied itemList.less to commonStyles.js except &.selected
  • Added aboutPageSectionMargin to global.js

Closes #7255
Addresses #7318

Auditors: @bsclifton @cezaraugusto

Test Plan:

  1. Open about:download
  2. Download a file
  3. Make sure the styles are not broken
  • 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).

Test Plan:

Copy link
Contributor

cezaraugusto left a comment

I left a comment asking for a minor change and otherwise LGTM

this.props['data-isDownload'] && styles.isDownload
)

return <list className={className} {...this.props} />

This comment has been minimized.

Copy link
@cezaraugusto

cezaraugusto Feb 18, 2017

Contributor

I don't think <list> is a valid element. Lists are tagged as grouping content and AFAICT this tag is not included as one. Can we replace that with just a div? btw ok to keep component name as List.

Ref: https://www.w3.org/community/webed/wiki/HTML/Elements#Grouping_content

overflow: 'hidden',
whiteSpace: 'nowrap',
padding: '8px 12px',
WebkitUserSelect: 'none',

This comment has been minimized.

Copy link
@cezaraugusto
Suguru Hirahara
including:

- Created <List> and <DownloadList> in list.js
- Copied itemList.less to commonStyles.js except '&.selected'
- Added aboutPageSectionMargin to global.js

Closes #7255
Addresses #7318

Auditors:

Test Plan:
1. Open about:download
2. Download a file
3. Make sure the styles are not broken
this.props['data-isDownload'] && styles.isDownload
)

return <div className={className} {...this.props} />

This comment has been minimized.

Copy link
@luixxiul

luixxiul Feb 20, 2017

Author Contributor

@cezaraugusto updated.

Copy link
Contributor

cezaraugusto left a comment

LGTM

@luixxiul luixxiul removed the request for review from bsclifton Feb 23, 2017
@luixxiul luixxiul merged commit ef121fb into brave:master Feb 23, 2017
0 of 2 checks passed
0 of 2 checks passed
continuous-integration/appveyor/pr AppVeyor build failed
Details
continuous-integration/travis-ci/pr The Travis CI build failed
Details
@luixxiul luixxiul deleted the luixxiul:aboutDownloads-aphrodite branch Feb 23, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.