mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
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:
@@ -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>
|
||||||
|
|||||||
@@ -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>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user