fix(striker-ui): inherit colour in input test messages

main
Tsu-ba-me 2 years ago
parent 95ce723b86
commit f8b6520da8
  1. 4
      striker-ui/lib/test_input/buildDomainTestBatch.tsx
  2. 12
      striker-ui/lib/test_input/buildPeacefulStringTestBatch.tsx

@ -21,8 +21,8 @@ const buildDomainTestBatch: BuildInputTestBatchFunction = (
onDomainTestFailure(
<>
{inputName} can only contain lowercase alphanumeric, hyphen (
<InlineMonoText text="-" />
), and dot (<InlineMonoText text="." />) characters.
<InlineMonoText inheritColour text="-" />
), and dot (<InlineMonoText inheritColour text="." />) characters.
</>,
...args,
);

@ -25,12 +25,12 @@ const buildPeacefulStringTestBatch: BuildInputTestBatchFunction = (
onTestPeacefulStringFailureAppend(
<>
{inputName} cannot contain single-quote (
<InlineMonoText text="'" />
), double-quote (<InlineMonoText text='"' />
), slash (<InlineMonoText text="/" />
), backslash (<InlineMonoText text="\" />
), angle brackets (<InlineMonoText text="<>" />
), curly brackets (<InlineMonoText text="{}" />
<InlineMonoText inheritColour text="'" />
), double-quote (<InlineMonoText inheritColour text='"' />
), slash (<InlineMonoText inheritColour text="/" />
), backslash (<InlineMonoText inheritColour text="\" />
), angle brackets (<InlineMonoText inheritColour text="<>" />
), curly brackets (<InlineMonoText inheritColour text="{}" />
).
</>,
...args,

Loading…
Cancel
Save