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

This commit is contained in:
Tsu-ba-me 2023-04-05 17:18:51 -04:00
parent 95ce723b86
commit f8b6520da8
2 changed files with 8 additions and 8 deletions

View File

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

View File

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