mirror of
https://github.com/hansjone/netx.git
synced 2026-10-12 14:10:49 +08:00
Fix display-column toggle highlight polarity on compare board.
Some checks failed
Release Windows / build (push) Has been cancelled
Some checks failed
Release Windows / build (push) Has been cancelled
Highlight when display columns are visible, and use a stable toggle label. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
1653a31b16
commit
ee053f9990
3 changed files with 7 additions and 6 deletions
|
|
@ -3802,13 +3802,12 @@ export function BizComparePage({ pageMode = "all" }: { pageMode?: BizComparePage
|
|||
) : null}
|
||||
<button
|
||||
type="button"
|
||||
className={`bs-cmp-strip__toggle${hideDisplayCols ? " is-active" : ""}`}
|
||||
className={`bs-cmp-strip__toggle${!hideDisplayCols ? " is-active" : ""}`}
|
||||
title={t("bizCompare.hideDisplayColsHint")}
|
||||
aria-pressed={!hideDisplayCols}
|
||||
onClick={() => setHideDisplayCols((v) => !v)}
|
||||
>
|
||||
{hideDisplayCols
|
||||
? t("bizCompare.showDisplayCols")
|
||||
: t("bizCompare.hideDisplayCols")}
|
||||
{t("bizCompare.displayColsToggle")}
|
||||
</button>
|
||||
</div>
|
||||
{resultSearchKeyFields.length && keyFiltersVisible ? (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue