fix: '+' button display in sidebar in Safari

This commit is contained in:
Tom Moor
2021-12-19 12:58:08 -08:00
parent 6fc1b5cc22
commit 5507295a36
2 changed files with 2 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
import styled from "styled-components";
const Button = styled.button.attrs(() => ({ type: "button" }))<{
const Button = styled.button.attrs((type) => ({ type: type || "button" }))<{
width?: number;
height?: number;
size?: number;

View File

@@ -315,6 +315,7 @@ function DocumentLink(
<Fade>
{can.createChildDocument && (
<NudeButton
type={undefined}
aria-label={t("New nested document")}
as={Link}
to={newDocumentPath(document.collectionId, {