fix: Update custom behavior file placeholder text (#2552)

Follows https://github.com/webrecorder/browsertrix/issues/2151

## Changes

Updates placeholder text for custom behavior files, since we now accept
JSON.
This commit is contained in:
sua yoo 2025-04-09 12:41:53 -07:00 committed by GitHub
parent eeda4cd9ff
commit f2e6892729
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -77,7 +77,7 @@ const errorFor: Record<ValidationErrorCode, string> = {
};
const inputStyle = [
tw`[--sl-input-border-radius-medium:0] [--sl-input-spacing-medium:var(--sl-spacing-small)] [--sl-input-background-color-hover:transparent] [--sl-input-background-color:transparent] [--sl-input-border-color-hover:transparent]`,
tw`[--sl-input-background-color-hover:transparent] [--sl-input-background-color:transparent] [--sl-input-border-color-hover:transparent] [--sl-input-border-radius-medium:0] [--sl-input-spacing-medium:var(--sl-spacing-small)]`,
tw`data-[valid]:[--sl-input-border-color:transparent]`,
tw`part-[form-control-help-text]:mx-1 part-[form-control-help-text]:mb-1`,
];
@ -356,7 +356,7 @@ export class CustomBehaviorsTableRow extends BtrixElement {
}
return this.renderUrlInput(behavior, {
placeholder: msg("Enter URL to JavaScript file"),
placeholder: msg("Enter location of behavior file"),
});
}