0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-30 11:02:38 +00:00

Move dialog[open] to Dialog component styling

This commit is contained in:
G.Ambatte
2024-06-06 22:00:28 +12:00
parent 38fc647495
commit ed39852a8f
3 changed files with 7 additions and 4 deletions

View File

@@ -1,4 +1,5 @@
// Dialog as a separate component
require('./dialog.less');
const React = require('react');
const { useState, useRef, useEffect } = React;

View File

@@ -0,0 +1,6 @@
dialog{
&[open]{
// Do NOT set a display property on a dialog! Set it on dialog[open] instead
display: inline-block;
}
}

View File

@@ -15,10 +15,6 @@
background-color : @blue;
color : white;
border : none;
&[open]{
// Do NOT set a display property on a dialog! Set it on dialog[open] instead
display: inline-block;
}
a{
color : #e0e5c1;
font-weight : 800;