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:
@@ -1,4 +1,5 @@
|
||||
// Dialog as a separate component
|
||||
require('./dialog.less');
|
||||
const React = require('react');
|
||||
const { useState, useRef, useEffect } = React;
|
||||
|
||||
|
||||
6
client/components/dialog.less
Normal file
6
client/components/dialog.less
Normal 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;
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user