From 749024c59bee8872a5b8ef74a20d8fc5f7aaac23 Mon Sep 17 00:00:00 2001 From: gchaps <33642766+gchaps@users.noreply.github.com> Date: Mon, 12 Mar 2018 09:43:51 -0700 Subject: [PATCH] fixed text for Add and Remove (#489) * fixed wording of add button * some more changes --- src-docs/src/views/guidelines/button.js | 11 +- src-docs/src/views/guidelines/modals.js | 270 +++++++++++++----------- 2 files changed, 152 insertions(+), 129 deletions(-) diff --git a/src-docs/src/views/guidelines/button.js b/src-docs/src/views/guidelines/button.js index faffa586559..80912312ed5 100644 --- a/src-docs/src/views/guidelines/button.js +++ b/src-docs/src/views/guidelines/button.js @@ -506,8 +506,9 @@ export default() => ( - Adds an object to a list or database. Always followed by an object, - for example, Add visualization. Do not use "Add new." Remove is the correct opposite. + Establishes a new relationship. Often used in a create-then-add scenario. + You create a dashboard, then add a visualization. Always followed by an object. + Do not use "Add new." Remove is the correct opposite. @@ -533,7 +534,7 @@ export default() => ( Creates a new object from scratch. Always followed by an object, for example, “Create pipeline.” Do not use "Create new." - Exception: “Add user” is more intuitive than “Create user.” Delete is the correct opposite + Exception: “Add user” is more intuitive than “Create user.” Delete is the correct opposite. @@ -562,8 +563,8 @@ export default() => ( - Removes an item not related to a database, such as a row from a table. - Do not confuse with Delete, which permanenty removes data from a database. + Removes a relationship, but doesn't permanently delete data. + For example, you remove a visualization from a dashboard. Add is the correct opposite. diff --git a/src-docs/src/views/guidelines/modals.js b/src-docs/src/views/guidelines/modals.js index c8d0a81d7c0..01ee64c6139 100644 --- a/src-docs/src/views/guidelines/modals.js +++ b/src-docs/src/views/guidelines/modals.js @@ -14,6 +14,7 @@ import { import { EuiButton, EuiText, + EuiHorizontalRule, EuiSpacer, EuiFlexGroup, EuiFlexItem, @@ -26,9 +27,9 @@ export default () => ( -

Modals

+

Modal guidelines

- A modal says “pay attention to me and nothing else.” Modals work best for focusing users' attention on a short + A modal says “pay attention to me and nothing else.” They work best for focusing users' attention on a short amount of content and getting them to make a decision.

@@ -39,7 +40,8 @@ export default () => (
- + + Anatomy @@ -60,115 +62,102 @@ export default () => ( -

The header sets the context for the user

+

The header sets the context

Short and sentence-case, it lets the user know the task that needs to get done.

The body supports a single task

This task should be critical to continuing the current process.

Buttons are right-aligned

The primary action is a filled button, and the secondary action is a link button.

-

An overlay is optional

+

An overlay is always used

It lets the user know that the content behind the modal isn't active.

- + + + - Usage - - - - - - - -

Use modals sparingly

-

- Modals pull users out of their current context. - They are well-suited for asking users to confirm an action and for short, focused input. - Otherwise, it's better to show the content within the page. -

-
-
-
- - - - - -

Keep content clean & simple

-

- A modal should be a short, direct conversation with the user. - If you’re trying to stuff a lot of content into your modal, then you should probably consider - a different solution, such as form. -

-
-
-
- - - - -

Open on a user action

-

- Don't just pop open a modal. Let a user action, - such as clicking a button, trigger a modal. -

-
-
-
-
- - Content + Input + + + +
+ + + +
+ + + + + +
+
+
+ + + + + + + - Confirmation modal + + Confirmation Modal (
@@ -202,131 +191,121 @@ export default () => ( url="https://imgur.com/cZXGOtz.jpg" />
+ +
+ +
- -
+
- +
- Simple input modal - - - -
-
- - - -
- - - - - -
-
-
- - + Things to avoid @@ -373,5 +352,48 @@ export default () => ( + + + + + +

Use modals sparingly

+

+ Modals pull users out of their current context. + They are well-suited for asking users to confirm an action and for short, focused input. + Otherwise, it's better to show the content within the page. +

+
+
+
+ + + + + +

Keep content clean & simple

+

+ A modal should be a short, direct conversation with the user. + If you’re trying to stuff a lot of content into your modal, then you should probably consider + a different solution, such as form. +

+
+
+
+ + + + +

Open on a user action

+

+ Don't just pop open a modal. Let a user action, + such as clicking a button, trigger a modal. +

+
+
+
+
+ +
);