Skip to content

Commit

Permalink
Merge pull request #11932 from Automattic/fix/media-modal-upload-by-u…
Browse files Browse the repository at this point in the history
…rl-styles

Media modal: do not apply custom styles to uploading-by-URL box
  • Loading branch information
retrofox authored Mar 9, 2017
2 parents 2f5eb7b + 1331edf commit 9ae39f5
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 11 deletions.
9 changes: 6 additions & 3 deletions client/my-sites/media-library/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ module.exports = React.createClass( {
mixins: [ urlSearch ],

propTypes: {
className: React.PropTypes.string,
site: React.PropTypes.object,
filter: React.PropTypes.string,
enabledFilters: React.PropTypes.arrayOf( React.PropTypes.string ),
Expand Down Expand Up @@ -143,9 +144,11 @@ module.exports = React.createClass( {
);
}

classes = classNames( 'media-library', {
'is-single': this.props.single
} );
classes = classNames(
'media-library',
{ 'is-single': this.props.single },
this.props.className,
);

return (
<div className={ classes }>
Expand Down
8 changes: 0 additions & 8 deletions client/my-sites/media-library/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -94,14 +94,6 @@
}
}

.media-library__header.media-library__upload-url {
padding: 6px 12px;
background-color: $white;
box-sizing: border-box;
box-shadow: 0 0 0 1px transparentize( lighten( $gray, 20% ), .5 ),
0 1px 2px lighten( $gray, 30% );
}

.media-library__upload-buttons {
display: inline;
}
Expand Down
1 change: 1 addition & 0 deletions client/my-sites/media/main.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ export default React.createClass( {
<MediaLibrarySelectedData siteId={ site.ID }>
<MediaLibrary
{ ...this.props }
className="media__main-section"
onFilterChange={ this.onFilterChange }
site={ site }
single={ false }
Expand Down
8 changes: 8 additions & 0 deletions client/my-sites/media/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,11 @@
color: lighten( $alert-red, 25% );
}
}

.media__main-section .media-library__header.media-library__upload-url {
padding: 6px 12px;
background-color: $white;
box-sizing: border-box;
box-shadow: 0 0 0 1px transparentize( lighten( $gray, 20% ), .5 ),
0 1px 2px lighten( $gray, 30% );
}

0 comments on commit 9ae39f5

Please sign in to comment.