diff --git a/src/components/Alert/Alert.tsx b/src/components/Alert/Alert.tsx index eb96f5152..62d138cb7 100644 --- a/src/components/Alert/Alert.tsx +++ b/src/components/Alert/Alert.tsx @@ -9,7 +9,7 @@ import type { AlertProps } from './Alert.types'; export const Alert: React.FunctionComponent = ({ children, - color = 'note', + color = 'info', icon, id, onClose, diff --git a/src/components/Alert/README.md b/src/components/Alert/README.md index 73657a36d..398337d73 100644 --- a/src/components/Alert/README.md +++ b/src/components/Alert/README.md @@ -87,27 +87,15 @@ This kind of alert can be used to display helpful information. ``` -### Info - -Another common, informative alert. - -```docoff-react-preview - - Info: This feature depends on user's OS preferences. - {' '} - - -``` - -### Note (Default) +### Info (Default) Neutral informative alert. ```docoff-react-preview - Note: This feature may not be available in all regions. + Info: This feature depends on user's OS preferences. {' '} - + ``` diff --git a/src/components/Alert/__tests__/Alert.spec.tsx-snapshots/Alert-visual-color-danger-1-chromium-linux.png b/src/components/Alert/__tests__/Alert.spec.tsx-snapshots/Alert-visual-color-danger-1-chromium-linux.png deleted file mode 100644 index d0bc9ae90..000000000 Binary files a/src/components/Alert/__tests__/Alert.spec.tsx-snapshots/Alert-visual-color-danger-1-chromium-linux.png and /dev/null differ diff --git a/src/components/Alert/__tests__/Alert.spec.tsx-snapshots/Alert-visual-color-dark-1-chromium-linux.png b/src/components/Alert/__tests__/Alert.spec.tsx-snapshots/Alert-visual-color-dark-1-chromium-linux.png deleted file mode 100644 index 3b3585137..000000000 Binary files a/src/components/Alert/__tests__/Alert.spec.tsx-snapshots/Alert-visual-color-dark-1-chromium-linux.png and /dev/null differ diff --git a/src/components/Alert/__tests__/Alert.spec.tsx-snapshots/Alert-visual-color-help-1-chromium-linux.png b/src/components/Alert/__tests__/Alert.spec.tsx-snapshots/Alert-visual-color-help-1-chromium-linux.png deleted file mode 100644 index 2acabfee6..000000000 Binary files a/src/components/Alert/__tests__/Alert.spec.tsx-snapshots/Alert-visual-color-help-1-chromium-linux.png and /dev/null differ diff --git a/src/components/Alert/__tests__/Alert.spec.tsx-snapshots/Alert-visual-color-info-1-chromium-linux.png b/src/components/Alert/__tests__/Alert.spec.tsx-snapshots/Alert-visual-color-info-1-chromium-linux.png deleted file mode 100644 index 97961ee1e..000000000 Binary files a/src/components/Alert/__tests__/Alert.spec.tsx-snapshots/Alert-visual-color-info-1-chromium-linux.png and /dev/null differ diff --git a/src/components/Alert/__tests__/Alert.spec.tsx-snapshots/Alert-visual-color-note-1-chromium-linux.png b/src/components/Alert/__tests__/Alert.spec.tsx-snapshots/Alert-visual-color-note-1-chromium-linux.png deleted file mode 100644 index ea15638ab..000000000 Binary files a/src/components/Alert/__tests__/Alert.spec.tsx-snapshots/Alert-visual-color-note-1-chromium-linux.png and /dev/null differ diff --git a/src/components/Alert/__tests__/Alert.spec.tsx-snapshots/Alert-visual-color-string-info-1-chromium-linux.png b/src/components/Alert/__tests__/Alert.spec.tsx-snapshots/Alert-visual-color-string-info-1-chromium-linux.png index 97961ee1e..634516fcf 100644 Binary files a/src/components/Alert/__tests__/Alert.spec.tsx-snapshots/Alert-visual-color-string-info-1-chromium-linux.png and b/src/components/Alert/__tests__/Alert.spec.tsx-snapshots/Alert-visual-color-string-info-1-chromium-linux.png differ diff --git a/src/components/Alert/__tests__/Alert.spec.tsx-snapshots/Alert-visual-color-string-note-1-chromium-linux.png b/src/components/Alert/__tests__/Alert.spec.tsx-snapshots/Alert-visual-color-string-note-1-chromium-linux.png deleted file mode 100644 index ea15638ab..000000000 Binary files a/src/components/Alert/__tests__/Alert.spec.tsx-snapshots/Alert-visual-color-string-note-1-chromium-linux.png and /dev/null differ diff --git a/src/components/Alert/__tests__/Alert.spec.tsx-snapshots/Alert-visual-color-warning-1-chromium-linux.png b/src/components/Alert/__tests__/Alert.spec.tsx-snapshots/Alert-visual-color-warning-1-chromium-linux.png deleted file mode 100644 index 0275de279..000000000 Binary files a/src/components/Alert/__tests__/Alert.spec.tsx-snapshots/Alert-visual-color-warning-1-chromium-linux.png and /dev/null differ diff --git a/src/components/Badge/Badge.tsx b/src/components/Badge/Badge.tsx index 002263c34..f592ba071 100644 --- a/src/components/Badge/Badge.tsx +++ b/src/components/Badge/Badge.tsx @@ -8,7 +8,7 @@ import styles from './Badge.module.scss'; import type { BadgeProps } from './Badge.types'; export const Badge: React.FunctionComponent = ({ - color = 'note', + color = 'info', label, priority = 'filled', ...restProps diff --git a/src/components/Badge/README.md b/src/components/Badge/README.md index 19fd22695..a4b63d064 100644 --- a/src/components/Badge/README.md +++ b/src/components/Badge/README.md @@ -42,7 +42,6 @@ High-emphasis priority to draw user's attention. - @@ -53,8 +52,7 @@ High-emphasis priority to draw user's attention. - - + ``` @@ -68,7 +66,6 @@ Medium-emphasis priority to provide additional context in an unobtrusive way. - @@ -79,8 +76,7 @@ Medium-emphasis priority to provide additional context in an unobtrusive way. - - + ``` diff --git a/src/components/Badge/__tests__/Badge.spec.tsx-snapshots/Badge-visual-color-string-info-priority-string-filled-1-chromium-linux.png b/src/components/Badge/__tests__/Badge.spec.tsx-snapshots/Badge-visual-color-string-info-priority-string-filled-1-chromium-linux.png index 7efe9643a..35a7c2166 100644 Binary files a/src/components/Badge/__tests__/Badge.spec.tsx-snapshots/Badge-visual-color-string-info-priority-string-filled-1-chromium-linux.png and b/src/components/Badge/__tests__/Badge.spec.tsx-snapshots/Badge-visual-color-string-info-priority-string-filled-1-chromium-linux.png differ diff --git a/src/components/Badge/__tests__/Badge.spec.tsx-snapshots/Badge-visual-color-string-info-priority-string-outline-1-chromium-linux.png b/src/components/Badge/__tests__/Badge.spec.tsx-snapshots/Badge-visual-color-string-info-priority-string-outline-1-chromium-linux.png index ab9f429bd..a9dd6637c 100644 Binary files a/src/components/Badge/__tests__/Badge.spec.tsx-snapshots/Badge-visual-color-string-info-priority-string-outline-1-chromium-linux.png and b/src/components/Badge/__tests__/Badge.spec.tsx-snapshots/Badge-visual-color-string-info-priority-string-outline-1-chromium-linux.png differ diff --git a/src/components/Badge/__tests__/Badge.spec.tsx-snapshots/Badge-visual-color-string-note-priority-string-filled-1-chromium-linux.png b/src/components/Badge/__tests__/Badge.spec.tsx-snapshots/Badge-visual-color-string-note-priority-string-filled-1-chromium-linux.png deleted file mode 100644 index 0b80f1561..000000000 Binary files a/src/components/Badge/__tests__/Badge.spec.tsx-snapshots/Badge-visual-color-string-note-priority-string-filled-1-chromium-linux.png and /dev/null differ diff --git a/src/components/Badge/__tests__/Badge.spec.tsx-snapshots/Badge-visual-color-string-note-priority-string-outline-1-chromium-linux.png b/src/components/Badge/__tests__/Badge.spec.tsx-snapshots/Badge-visual-color-string-note-priority-string-outline-1-chromium-linux.png deleted file mode 100644 index 5fbf1e4ac..000000000 Binary files a/src/components/Badge/__tests__/Badge.spec.tsx-snapshots/Badge-visual-color-string-note-priority-string-outline-1-chromium-linux.png and /dev/null differ diff --git a/src/components/Button/README.md b/src/components/Button/README.md index ad65ab7b5..b64798516 100644 --- a/src/components/Button/README.md +++ b/src/components/Button/README.md @@ -58,7 +58,6 @@ app. Use it sparingly but remember there should always be one on a screen.