ionic-team / ionic-team/ionic-docs

Note about stacking modals is not complete

Đang mở
#2,154 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
content
Ngôn ngữ chính
MDX
Star
621
Fork
3.2k
Merge trung bình
1 ngày 2 giờ
Pull request đã merge (30 ngày)
86

Mô tả

In the docs of the ion-modal (https://ionicframework.com/docs/api/modal), I found a note about adding CSS in order to darken the background of stacking modals:

```
ion-modal.stack-modal {
--box-shadow: 0 28px 48px rgba(0, 0, 0, 0.4);
--backdrop-opacity: var(--ion-backdrop-opacity, 0.32);
}
```

I noticed that this CSS gets overwritten by styles of Ionic. It was necessary to add `!important` to the custom styles above in order to make a backdrop getting darker with multiple modals.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.