mirror of
https://github.com/prymitive/karma
synced 2026-05-07 03:26:52 +00:00
fix(ui): make warnings on the Help page more readable
This commit is contained in:
@@ -42,7 +42,7 @@ const QueryHelp = ({ title, operators, warning, children }) => (
|
||||
))}
|
||||
</div>
|
||||
{warning ? (
|
||||
<div className="my-1 alert alert-light">
|
||||
<div className="my-1 alert alert-secondary">
|
||||
<FontAwesomeIcon icon={faInfoCircle} className="mr-1" />
|
||||
{warning}
|
||||
</div>
|
||||
@@ -240,7 +240,7 @@ const Help = ({ defaultIsOpen }) => (
|
||||
<QueryHelp
|
||||
title="Match alerts based on the ticket IDs detected in the silence comment"
|
||||
operators={["=", "!=", "=~", "!~"]}
|
||||
warning="This is supported only if ticket regexp are enabled and able to
|
||||
warning="This is supported only if ticket regexp rules are enabled and able to
|
||||
match ticket IDs in the silence comment."
|
||||
>
|
||||
<FilterExample example="@silence_ticket=PROJECT-123">
|
||||
|
||||
@@ -685,7 +685,7 @@ exports[`<Help /> matches snapshot 1`] = `
|
||||
!~
|
||||
</kbd>
|
||||
</div>
|
||||
<div class=\\"my-1 alert alert-light\\">
|
||||
<div class=\\"my-1 alert alert-secondary\\">
|
||||
<svg aria-hidden=\\"true\\"
|
||||
focusable=\\"false\\"
|
||||
data-prefix=\\"fas\\"
|
||||
@@ -700,7 +700,7 @@ exports[`<Help /> matches snapshot 1`] = `
|
||||
>
|
||||
</path>
|
||||
</svg>
|
||||
This is supported only if ticket regexp are enabled and able to match ticket IDs in the silence comment.
|
||||
This is supported only if ticket regexp rules are enabled and able to match ticket IDs in the silence comment.
|
||||
</div>
|
||||
<div>
|
||||
Examples:
|
||||
@@ -760,7 +760,7 @@ exports[`<Help /> matches snapshot 1`] = `
|
||||
=
|
||||
</kbd>
|
||||
</div>
|
||||
<div class=\\"my-1 alert alert-light\\">
|
||||
<div class=\\"my-1 alert alert-secondary\\">
|
||||
<svg aria-hidden=\\"true\\"
|
||||
focusable=\\"false\\"
|
||||
data-prefix=\\"fas\\"
|
||||
|
||||
Reference in New Issue
Block a user