fix(item-sliding): use a white item background instead of transparent (#16507)

- use the global item background variable for md
- lowers screenshot threshold to catch this regression

fixes #16474
This commit is contained in:
Brandy Carney
2018-11-29 11:25:15 -05:00
committed by GitHub
parent 509650349e
commit 2d33c63c52
3 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,7 @@
:host { :host {
--min-height: #{$item-md-min-height}; --min-height: #{$item-md-min-height};
--background: var(--ion-item-background, transparent); --background: #{$item-md-background};
--background-activated: var(--background); --background-activated: var(--background);
--border-color: #{$item-md-border-bottom-color}; --border-color: #{$item-md-border-bottom-color};
--color: #{$item-md-color}; --color: #{$item-md-color};

View File

@ -113,7 +113,7 @@
for (var i = 0; i < items.length; i++) { for (var i = 0; i < items.length; i++) {
groupEl.innerHTML += ` groupEl.innerHTML += `
<ion-item onClick="clickedButton(${i})" <ion-item onClick="clickedButton(${i})"
style="min-height: ${i * 2 + 35}px; background-color: rgb(${255 - i * 4}, ${255 - i * 4}, ${255 - i * 4})"> style="min-height: ${i * 2 + 35}px; --background: rgb(${255 - i * 4}, ${255 - i * 4}, ${255 - i * 4})">
${i} ${i}
<ion-reorder slot="end"></ion-reorder> <ion-reorder slot="end"></ion-reorder>
</ion-item>`; </ion-item>`;

View File

@ -115,7 +115,7 @@ export const config: Config = {
], ],
testing: { testing: {
allowableMismatchedPixels: 200, allowableMismatchedPixels: 200,
pixelmatchThreshold: 0.1, pixelmatchThreshold: 0.05,
emulate: [ emulate: [
{ {
userAgent: 'iPhone', userAgent: 'iPhone',