Telegram-Mini-Apps / TelegramUI

React components library for Telegram Mini Apps inspired by Telegram interface
https://ton.org/mini-apps
MIT License
59 stars 5 forks source link

Add custom overlay color in Modal component #18

Closed bshelkhonov closed 3 weeks ago

bshelkhonov commented 3 weeks ago

Now background color for overlay is hardcoded: https://github.com/Telegram-Mini-Apps/TelegramUI/blob/61b1e04101ae8c727d3092379e255b4d3497084a/src/components/Overlays/Modal/components/ModalOverlay/ModalOverlay.tsx#L39

Can you add a possibility to make custom background color?

bshelkhonov commented 3 weeks ago

After study of documentation and code found out how to do it.

          overlayComponent={
              <Modal.Overlay
                  style={{ background: "rgba(33, 33, 33, 0.8)" }}
              />
          }