disable pointer events on hidden menus in zen mode (#1511)

This commit is contained in:
David Luzar 2020-04-29 22:49:36 +02:00 committed by GitHub
parent 0c2aa951d6
commit 51f8146357
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 28 additions and 8 deletions

View file

@ -7,12 +7,19 @@ type StackProps = {
gap?: number;
align?: "start" | "center" | "end" | "baseline";
justifyContent?: "center" | "space-around" | "space-between";
className?: string | boolean;
};
function RowStack({ children, gap, align, justifyContent }: StackProps) {
function RowStack({
children,
gap,
align,
justifyContent,
className,
}: StackProps) {
return (
<div
className="Stack Stack_horizontal"
className={`Stack Stack_horizontal ${className || ""}`}
style={
{
"--gap": gap,
@ -26,10 +33,16 @@ function RowStack({ children, gap, align, justifyContent }: StackProps) {
);
}
function ColStack({ children, gap, align, justifyContent }: StackProps) {
function ColStack({
children,
gap,
align,
justifyContent,
className,
}: StackProps) {
return (
<div
className="Stack Stack_vertical"
className={`Stack Stack_vertical ${className || ""}`}
style={
{
"--gap": gap,