Add success notice style (#5242

* Add success notice style

* Move quote styling closer to notices
Improving parsing of notices when pasting from other tools
This commit is contained in:
Tom Moor
2023-04-23 13:34:40 -04:00
committed by GitHub
parent 7620d37009
commit 71b2cd1c46
7 changed files with 60 additions and 3 deletions

View File

@@ -19,6 +19,7 @@ import {
ClockIcon,
CalendarIcon,
MathIcon,
DoneIcon,
} from "outline-icons";
import * as React from "react";
import styled from "styled-components";
@@ -116,6 +117,7 @@ export default function blockMenuItems(dictionary: Dictionary): MenuItem[] {
name: "blockquote",
title: dictionary.quote,
icon: <BlockQuoteIcon />,
keywords: "blockquote pullquote",
shortcut: `${metaDisplay} ]`,
},
{
@@ -173,6 +175,13 @@ export default function blockMenuItems(dictionary: Dictionary): MenuItem[] {
keywords: "notice card information",
attrs: { style: "info" },
},
{
name: "container_notice",
title: dictionary.successNotice,
icon: <DoneIcon />,
keywords: "notice card success",
attrs: { style: "success" },
},
{
name: "container_notice",
title: dictionary.warningNotice,