[英]Ionic 5: remove background shade behind ion-item
I have border-bottom-left-radius on ion-item on my ion-header.我的 ion-header 上的 ion-item 有border-bottom-left-radius 。 problem I get black background on side that is curved as on the image below.
问题 我在弯曲的一侧得到黑色背景,如下图所示。 How can I remove it?
我怎样才能删除它? I want the background to be the same as the default background color: #f8f8fa
我希望背景与默认背景颜色相同:#f8f8fa
<ion-header class="ion-no-border">
<ion-toolbar class="ion-no-border" mode="md">
<ion-buttons slot="end">
<ion-button fill="clear" color="light">
<ion-icon name="notifications-outline"></ion-icon>
</ion-button>
</ion-buttons>
</ion-toolbar>
<ion-item lines="none">
<ion-label>
<p>Welcome!</p>
<h3>Where are you going next?</h3>
</ion-label>
<ion-avatar slot="end">
<img src="https://yt3.ggpht.com/a-/AOh14GjThP6xpdHXuwV9tVt7wMvBIytCfvZm4N_BkN1MrA=s288-c-k-c0xffffffff-no-rj-mo">
</ion-avatar>
</ion-item>
and my sass和我的 sass
ion-header {
min-height: 150px;
ion-toolbar, ion-item {
--background: var(--ion-color-primary);
background: var(--ion-color-primary);
padding: 0 20px;
overflow: hidden;
}
ion-toolbar {
.bordered {
--border-radius: 10px;
--box-shadow: 5px 5px 10px #947cff, -5px -5px 10px #7e64ff;
}
}
ion-item {
padding: 50px 20px 60px;
border-bottom-left-radius: 40px;
the border-bottom-left-radius
is what is causing the curve. border-bottom-left-radius
是导致曲线的原因。 Just remove it只需删除它
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.