From 1be1f1e53acd5b231e309f52037b85938d4670cc Mon Sep 17 00:00:00 2001 From: neverland Date: Thu, 11 Oct 2018 10:52:54 +0800 Subject: [PATCH] [bugfix] Toast: tap highlight color when unclickable (#1914) --- docs/src/docs-entry.js | 1 - packages/vant-css/src/toast.css | 8 +++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/docs/src/docs-entry.js b/docs/src/docs-entry.js index d81934da9..48a2c13d3 100644 --- a/docs/src/docs-entry.js +++ b/docs/src/docs-entry.js @@ -1,7 +1,6 @@ // This file is auto gererated by build/build-entry.js export default { 'changelog.en-US': () => import('../markdown/changelog.en-US.md'), - 'changelog.generated': () => import('../markdown/changelog.generated.md'), 'changelog.zh-CN': () => import('../markdown/changelog.zh-CN.md'), 'contribution.zh-CN': () => import('../markdown/contribution.zh-CN.md'), 'intro.en-US': () => import('../markdown/intro.en-US.md'), diff --git a/packages/vant-css/src/toast.css b/packages/vant-css/src/toast.css index 25e9d39b2..bb3632657 100644 --- a/packages/vant-css/src/toast.css +++ b/packages/vant-css/src/toast.css @@ -17,8 +17,14 @@ transform: translate3d(-50%, -50%, 0); background-color: rgba(0, 0, 0, .7); + /** + * should not add pointer-events: none directly to body tag + * that will cause unexpected tap-highlight-color in mobile safari + */ &--unclickable { - pointer-events: none; + * { + pointer-events: none; + } } &--text {