Skip to content

Commit

Permalink
fix mseemann#325 - shadow value 0
Browse files Browse the repository at this point in the history
  • Loading branch information
mseemann authored and Zafar Saeed Khan committed Dec 18, 2016
1 parent 3e08e8e commit 1deb33c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 31 deletions.
4 changes: 2 additions & 2 deletions src/demo-app/app/shadow/shadow.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ <h4>The Shadows</h4>
<![CDATA[
<div mdl-shadow="2"></div>

<div class="shadow-example" *ngFor="let shadow of [2,3,4,6,8,16,24]" [mdl-shadow]="shadow">{{shadow}}</div>
<div class="shadow-example" *ngFor="let shadow of [0,2,3,4,6,8,16,24]" [mdl-shadow]="shadow">{{shadow}}</div>
]]>
</pre>



<div class="shadow-example" *ngFor="let shadow of [2,3,4,6,8,16,24]" [mdl-shadow]="shadow">{{shadow}}</div>
<div class="shadow-example" *ngFor="let shadow of [0,2,3,4,6,8,16,24]" [mdl-shadow]="shadow">{{shadow}}</div>

<div class="clearfix"></div>
<p>The <i>mdl-shadow</i> directive is a convenient directive that let's you create drop shadows on container.
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/shadow/mdl-shadow.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export class MdlUnsupportedShadowValueError extends MdlError {
}
}

const MDL_SHADOW_VALUES = [2, 3, 4, 6, 8, 16, 24];
const MDL_SHADOW_VALUES = [0, 2, 3, 4, 6, 8, 16, 24];

@Directive({
selector: '[mdl-shadow]'
Expand Down
36 changes: 8 additions & 28 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,11 @@
version "2.5.38"
resolved "https://registry.yarnpkg.com/@types/jasmine/-/jasmine-2.5.38.tgz#a4379124c4921d4e21de54ec74669c9e9b356717"

"@types/node@6.0.51", "@types/node@^6.0.46":
"@types/node@6.0.52":
version "6.0.52"
resolved "https://registry.yarnpkg.com/@types/node/-/node-6.0.52.tgz#1ac3a99b42320f9e463482f25af4c2359473aaa6"

"@types/node@^6.0.46":
version "6.0.51"
resolved "https://registry.yarnpkg.com/@types/node/-/node-6.0.51.tgz#84cbf25111516ec9304d0b61469dc0fa9d12ba32"

Expand Down Expand Up @@ -323,7 +327,7 @@ asynckit@^0.4.0:
version "0.4.0"
resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79"

autoprefixer@6.5.4:
autoprefixer@6.5.4, autoprefixer@^6.3.1:
version "6.5.4"
resolved "https://registry.yarnpkg.com/autoprefixer/-/autoprefixer-6.5.4.tgz#1386eb6708ccff36aefff70adc694ecfd60af1b0"
dependencies:
Expand All @@ -334,17 +338,6 @@ autoprefixer@6.5.4:
postcss "^5.2.6"
postcss-value-parser "^3.2.3"

autoprefixer@^6.3.1:
version "6.5.3"
resolved "https://registry.yarnpkg.com/autoprefixer/-/autoprefixer-6.5.3.tgz#2d853af66d04449fcf50db3066279ab54c3e4b01"
dependencies:
browserslist "~1.4.0"
caniuse-db "^1.0.30000578"
normalize-range "^0.1.2"
num2fraction "^1.2.2"
postcss "^5.2.5"
postcss-value-parser "^3.2.3"

awesome-typescript-loader@2.2.4:
version "2.2.4"
resolved "https://registry.yarnpkg.com/awesome-typescript-loader/-/awesome-typescript-loader-2.2.4.tgz#4185d60c035c25515f9c2a747fa5f69b2a001e9e"
Expand Down Expand Up @@ -635,11 +628,7 @@ camelcase@^3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-3.0.0.tgz#32fc4b9fcdaf845fcdf7e73bb97cac2261f0ab0a"

caniuse-db@^1.0.30000539, caniuse-db@^1.0.30000578:
version "1.0.30000578"
resolved "https://registry.yarnpkg.com/caniuse-db/-/caniuse-db-1.0.30000578.tgz#fc4106bda3ca19df4bd9f35e491063f3d498ff31"

caniuse-db@^1.0.30000597:
caniuse-db@^1.0.30000539, caniuse-db@^1.0.30000597:
version "1.0.30000597"
resolved "https://registry.yarnpkg.com/caniuse-db/-/caniuse-db-1.0.30000597.tgz#b52e6cbe9dc83669affb98501629feaee1af6588"

Expand Down Expand Up @@ -3924,16 +3913,7 @@ postcss-zindex@^2.0.1:
postcss "^5.0.4"
uniqs "^2.0.0"

postcss@^5.0.10, postcss@^5.0.11, postcss@^5.0.12, postcss@^5.0.13, postcss@^5.0.14, postcss@^5.0.16, postcss@^5.0.2, postcss@^5.0.4, postcss@^5.0.5, postcss@^5.0.6, postcss@^5.0.8, postcss@^5.2.5:
version "5.2.5"
resolved "https://registry.yarnpkg.com/postcss/-/postcss-5.2.5.tgz#ec428c27dffc7fac65961340a9b022fa4af5f056"
dependencies:
chalk "^1.1.3"
js-base64 "^2.1.9"
source-map "^0.5.6"
supports-color "^3.1.2"

postcss@^5.2.6:
postcss@^5.0.10, postcss@^5.0.11, postcss@^5.0.12, postcss@^5.0.13, postcss@^5.0.14, postcss@^5.0.16, postcss@^5.0.2, postcss@^5.0.4, postcss@^5.0.5, postcss@^5.0.6, postcss@^5.0.8, postcss@^5.2.6:
version "5.2.6"
resolved "https://registry.yarnpkg.com/postcss/-/postcss-5.2.6.tgz#a252cd67cd52585035f17e9ad12b35137a7bdd9e"
dependencies:
Expand Down

0 comments on commit 1deb33c

Please sign in to comment.