From 2e6de8b2e57db0c22acd7166588e4f675ef5c8a1 Mon Sep 17 00:00:00 2001 From: Aaron D Borden Date: Fri, 10 Feb 2017 17:13:12 -0800 Subject: [PATCH] Update docs for status-pill and activity log --- .../components/status-pill/README.md | 23 ++++++++--- .../status-pill/status-pill.config.yml | 3 -- .../components/status-pill/status-pill.html | 9 +++-- .../features/activity-log/README.md | 5 +++ .../activity-log/activity-log.config.yml | 2 + .../features/activity-log/activity-log.html | 40 +++++++++++++++++++ 6 files changed, 70 insertions(+), 12 deletions(-) create mode 100644 docs/src/components/features/activity-log/README.md create mode 100644 docs/src/components/features/activity-log/activity-log.config.yml create mode 100644 docs/src/components/features/activity-log/activity-log.html diff --git a/docs/src/components/components/status-pill/README.md b/docs/src/components/components/status-pill/README.md index 817b2078..ebefb440 100644 --- a/docs/src/components/components/status-pill/README.md +++ b/docs/src/components/components/status-pill/README.md @@ -6,11 +6,24 @@ The **status pill** component is a way to communicate status of various applicat ## Use To use the **status pill** component, use the @extend `.status-pill` within the SCSS. -``` -.activity_log-item-error, -.activity_log-item-success, -.activity_log-item-warning { +```scss +.stat-error, +.stat-warning { &::before { @extend .status-pill; - }``` + } +} + +.stat-error { + &::before { + border-color: $color-error; + } +} + +.stat-warning { + &::before { + border-color: $color-warning; + } +} +``` diff --git a/docs/src/components/components/status-pill/status-pill.config.yml b/docs/src/components/components/status-pill/status-pill.config.yml index 9599e2c1..415b42e5 100644 --- a/docs/src/components/components/status-pill/status-pill.config.yml +++ b/docs/src/components/components/status-pill/status-pill.config.yml @@ -7,14 +7,11 @@ variants: context: text: "success" modifier: success - patternbreak: "
" - name: warning context: text: "warning" modifier: warning - patternbreak: "
" - name: error context: text: "error" modifier: error - patternbreak: "
" diff --git a/docs/src/components/components/status-pill/status-pill.html b/docs/src/components/components/status-pill/status-pill.html index f886e86d..221ea370 100644 --- a/docs/src/components/components/status-pill/status-pill.html +++ b/docs/src/components/components/status-pill/status-pill.html @@ -1,4 +1,5 @@ - -usage {{ text }}{{ patternbreak }} - -
activity log {{ text }}
{{ patternbreak }} +
+

Instance memory used

+ 10 MB + 460 KB available +
diff --git a/docs/src/components/features/activity-log/README.md b/docs/src/components/features/activity-log/README.md new file mode 100644 index 00000000..9fc4bf9e --- /dev/null +++ b/docs/src/components/features/activity-log/README.md @@ -0,0 +1,5 @@ +# Activity Log + +The activity log shows recent logs and events for a particular entity. + +The log lines can be expandable to show more detail. diff --git a/docs/src/components/features/activity-log/activity-log.config.yml b/docs/src/components/features/activity-log/activity-log.config.yml new file mode 100644 index 00000000..a4f9601d --- /dev/null +++ b/docs/src/components/features/activity-log/activity-log.config.yml @@ -0,0 +1,2 @@ +title: Activity Log +status: beta diff --git a/docs/src/components/features/activity-log/activity-log.html b/docs/src/components/features/activity-log/activity-log.html new file mode 100644 index 00000000..b42beb59 --- /dev/null +++ b/docs/src/components/features/activity-log/activity-log.html @@ -0,0 +1,40 @@ +