Skip to content

Use a single div for Paper#601

Merged
hai-cea merged 1 commit intomui:masterfrom
pomerantsev:paper-single-div
May 10, 2015
Merged

Use a single div for Paper#601
hai-cea merged 1 commit intomui:masterfrom
pomerantsev:paper-single-div

Conversation

@pomerantsev
Copy link
Copy Markdown
Contributor

In a conversation with Hai Nguyen (@hai-cea), he confirmed that the
only reason for creating an inner div was preserving the two shadows.
Since it's possible in CSS to apply two or more shadows to a single
element, such nested structure is in my opinion redundant.
The order of shadows matters: shadows for an element are applied
top to bottom (first one goes on top), we had to put the child's
shadows first.

In a conversation with Hai Nguyen (@hai-cea), he confirmed that the
only reason for creating an inner div was preserving the two shadows.
Since it's possible in CSS to apply two or more shadows to a single
element, such nested structure is in my opinion redundant.
The order of shadows matters: shadows for an element are applied
top to bottom (first one goes on top), we had to put the child's
shadows first.
hai-cea added a commit that referenced this pull request May 10, 2015
@hai-cea hai-cea merged commit 19e16d9 into mui:master May 10, 2015
@hai-cea
Copy link
Copy Markdown
Member

hai-cea commented May 10, 2015

Looks great @pomerantsev 👍

I didn't know this was possible! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope: paper Changes related to the <Paper>.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants