Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/sidebar/components/search/FilterControls.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ export default function FilterControls({
{hasSelection && (
<FilterToggle
label={`${selectedCount} selected`}
description={`Show ${selectedCount} selected annotations`}
description={`Show only the ${selectedCount} selected annotations. Press to clear this filter and show all annotations.`}
active={true}
setActive={() => store.clearSelection()}
testId="selection-toggle"
Expand All @@ -172,7 +172,7 @@ export default function FilterControls({
<FilterToggle
icon={ProfileIcon}
label={`By ${focusFilters.user.display}`}
description={`Show annotations by ${focusFilters.user.display}`}
description={`Show annotations by ${focusFilters.user.display}. Press to clear this filter.`}
active={focusActive.has('user')}
// When a selection exists, it replaces other filters.
disabled={hasSelection}
Expand All @@ -184,7 +184,7 @@ export default function FilterControls({
<FilterToggle
icon={FileGenericIcon}
label={`Pages ${focusFilters.page.display}`}
description={`Show annotations on pages ${focusFilters.page.display}`}
description={`Show annotations on pages ${focusFilters.page.display}. Press to clear this filter.`}
active={focusActive.has('page')}
disabled={hasSelection}
setActive={() => store.toggleFocusMode({ key: 'page' })}
Expand All @@ -195,7 +195,7 @@ export default function FilterControls({
<FilterToggle
icon={FileGenericIcon}
label="Selected chapter"
description="Show annotations on selected book chapter(s)"
description="Show annotations on selected book chapter(s). Press to clear this filter."
active={focusActive.has('cfi')}
disabled={hasSelection}
setActive={() => store.toggleFocusMode({ key: 'cfi' })}
Expand Down