Skip to content

Commit 6015629

Browse files
karenrasmussensanticomp2014
authored andcommitted
Update descriptions used as aria-labels in FilterControls
1 parent cc23487 commit 6015629

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/sidebar/components/search/FilterControls.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ export default function FilterControls({
161161
{hasSelection && (
162162
<FilterToggle
163163
label={`Remove ${selectedCount} selected annotation filter`}
164-
description={`Show ${selectedCount} selected annotations`}
164+
description={`Show only the ${selectedCount} selected annotations. Press to clear this filter and show all annotations.`}
165165
active={true}
166166
setActive={() => store.clearSelection()}
167167
testId="selection-toggle"
@@ -171,7 +171,7 @@ export default function FilterControls({
171171
<FilterToggle
172172
icon={ProfileIcon}
173173
label={`By ${focusFilters.user.display}`}
174-
description={`Show annotations by ${focusFilters.user.display}`}
174+
description={`Show annotations by ${focusFilters.user.display}. Press to clear this filter.`}
175175
active={focusActive.has('user')}
176176
// When a selection exists, it replaces other filters.
177177
disabled={hasSelection}
@@ -183,7 +183,7 @@ export default function FilterControls({
183183
<FilterToggle
184184
icon={FileGenericIcon}
185185
label={`Pages ${focusFilters.page.display}`}
186-
description={`Show annotations on pages ${focusFilters.page.display}`}
186+
description={`Show annotations on pages ${focusFilters.page.display}. Press to clear this filter.`}
187187
active={focusActive.has('page')}
188188
disabled={hasSelection}
189189
setActive={() => store.toggleFocusMode({ key: 'page' })}
@@ -194,7 +194,7 @@ export default function FilterControls({
194194
<FilterToggle
195195
icon={FileGenericIcon}
196196
label="Selected chapter"
197-
description="Show annotations on selected book chapter(s)"
197+
description="Show annotations on selected book chapter(s). Press to clear this filter."
198198
active={focusActive.has('cfi')}
199199
disabled={hasSelection}
200200
setActive={() => store.toggleFocusMode({ key: 'cfi' })}

0 commit comments

Comments
 (0)