[bugfix] Toast: tap highlight color when unclickable (#1914)

This commit is contained in:
neverland 2018-10-11 10:52:54 +08:00 committed by GitHub
parent b0faa7bbe0
commit 1be1f1e53a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View File

@ -1,7 +1,6 @@
// This file is auto gererated by build/build-entry.js // This file is auto gererated by build/build-entry.js
export default { export default {
'changelog.en-US': () => import('../markdown/changelog.en-US.md'), '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'), 'changelog.zh-CN': () => import('../markdown/changelog.zh-CN.md'),
'contribution.zh-CN': () => import('../markdown/contribution.zh-CN.md'), 'contribution.zh-CN': () => import('../markdown/contribution.zh-CN.md'),
'intro.en-US': () => import('../markdown/intro.en-US.md'), 'intro.en-US': () => import('../markdown/intro.en-US.md'),

View File

@ -17,8 +17,14 @@
transform: translate3d(-50%, -50%, 0); transform: translate3d(-50%, -50%, 0);
background-color: rgba(0, 0, 0, .7); 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 { &--unclickable {
pointer-events: none; * {
pointer-events: none;
}
} }
&--text { &--text {