Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to override react-skylight min-height in next.js?

These days I am developing the next.js project. I am using react-skylight to create a modal. I want to override min-height. In skylight already had skylight-dialog CSS class. I have already attached the image regarding CSS and prop.

const myBigGreenDialog = {
     backgroundColor: '#ffffff',
     color: '#000',
     width: '50%',
     height: '200px',
     padding: '3rem'
   }; 

enter image description here

like image 341
Deshani Ranasingha Avatar asked Dec 08 '25 09:12

Deshani Ranasingha


1 Answers

React skylight in 2018-04-03 v0.5.1 Change dialog style height to minHeight. try like this prop.

const myBigGreenDialog = {
  backgroundColor: '#ffffff',
  color: '#000',
  width: '50%',
  minHeight: '250px',
  padding: '3rem'
};
like image 191
Mithila Eranda Avatar answered Dec 09 '25 23:12

Mithila Eranda



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!