fix: use body color for brackets around inline action buttons

Wrap copy-error and failed-publish bracket characters in spans so they use body text color instead of inheriting the action button color.
This commit is contained in:
Tommaso Casaburi
2026-06-06 23:15:29 +07:00
parent 404a464310
commit bc67e961fc
4 changed files with 14 additions and 7 deletions
@@ -27,6 +27,10 @@
white-space: nowrap; white-space: nowrap;
} }
.copyErrorBracket {
color: var(--body-font-color);
}
.copyErrorButton { .copyErrorButton {
all: unset; all: unset;
font: inherit; font: inherit;
@@ -79,11 +79,11 @@ const ErrorDisplay = ({ error, displayMessage, inline = false, showImmediately =
{originalDisplayMessage && <span className={styles.errorMessage}>{originalDisplayMessage}</span>} {originalDisplayMessage && <span className={styles.errorMessage}>{originalDisplayMessage}</span>}
{canCopyError && ( {canCopyError && (
<span className={styles.copyErrorButtonWrapper}> <span className={styles.copyErrorButtonWrapper}>
[ <span className={styles.copyErrorBracket}>[</span>
<button type='button' className={copyButtonClassNames.join(' ')} onClick={handleCopyError} title={t('copyFullError', 'copy full error')}> <button type='button' className={copyButtonClassNames.join(' ')} onClick={handleCopyError} title={t('copyFullError', 'copy full error')}>
{displayCopyButtonLabel} {displayCopyButtonLabel}
</button> </button>
] <span className={styles.copyErrorBracket}>]</span>
</span> </span>
)} )}
</div> </div>
+4 -4
View File
@@ -23,19 +23,19 @@ const FailedPublishNotice = ({ isDeleting, isRetrying = false, onDelete, onRetry
)} )}
{onRetry && ( {onRetry && (
<span className={styles.failedDeletePostAction}> <span className={styles.failedDeletePostAction}>
[ <span className={styles.failedDeletePostBracket}>[</span>
<button type='button' className={styles.failedDeletePostButton} disabled={isBusy} onClick={onRetry}> <button type='button' className={styles.failedDeletePostButton} disabled={isBusy} onClick={onRetry}>
Retry Publish Retry Publish
</button> </button>
] <span className={styles.failedDeletePostBracket}>]</span>
</span> </span>
)}{' '} )}{' '}
<span className={styles.failedDeletePostAction}> <span className={styles.failedDeletePostAction}>
[ <span className={styles.failedDeletePostBracket}>[</span>
<button type='button' className={styles.failedDeletePostButton} disabled={isBusy} onClick={onDelete}> <button type='button' className={styles.failedDeletePostButton} disabled={isBusy} onClick={onDelete}>
Delete Post Delete Post
</button> </button>
] <span className={styles.failedDeletePostBracket}>]</span>
</span> </span>
</span> </span>
); );
+4 -1
View File
@@ -672,10 +672,13 @@
} }
.failedDeletePostAction { .failedDeletePostAction {
color: var(--button-desktop-text-color);
font-weight: 400; font-weight: 400;
} }
.failedDeletePostBracket {
color: var(--body-font-color);
}
.failedDeletePostButton { .failedDeletePostButton {
all: unset; all: unset;
font: inherit; font: inherit;