Unverified Commit a0476bf7 authored by Lyza Gardner's avatar Lyza Gardner Committed by GitHub

Merge pull request #2188 from hypothesis/remove-redundant-aria

Remove redundant “Select” and “tabs” verbiage
parents 3ba68201 be001f85
......@@ -123,7 +123,7 @@ function SelectionTabs({ isLoading, settings }) {
count={annotationCount}
isWaitingToAnchor={isWaitingToAnchorAnnotations}
isSelected={selectedTab === uiConstants.TAB_ANNOTATIONS}
label="Select annotations tab"
label="Annotations"
onSelect={() => selectTab(uiConstants.TAB_ANNOTATIONS)}
>
Annotations
......@@ -132,7 +132,7 @@ function SelectionTabs({ isLoading, settings }) {
count={noteCount}
isWaitingToAnchor={isWaitingToAnchorAnnotations}
isSelected={selectedTab === uiConstants.TAB_NOTES}
label="Select page notes tab"
label="Page notes"
onSelect={() => selectTab(uiConstants.TAB_NOTES)}
>
Page Notes
......@@ -142,7 +142,7 @@ function SelectionTabs({ isLoading, settings }) {
count={orphanCount}
isWaitingToAnchor={isWaitingToAnchorAnnotations}
isSelected={selectedTab === uiConstants.TAB_ORPHANS}
label="Select orphans tab"
label="Orphans"
onSelect={() => selectTab(uiConstants.TAB_ORPHANS)}
>
Orphans
......
......@@ -112,12 +112,12 @@ describe('SelectionTabs', function () {
const tabs = wrapper.find('button');
assert.equal(tabs.at(0).prop('aria-label'), 'Select annotations tab');
assert.equal(tabs.at(0).prop('title'), 'Select annotations tab');
assert.equal(tabs.at(1).prop('aria-label'), 'Select page notes tab');
assert.equal(tabs.at(1).prop('title'), 'Select page notes tab');
assert.equal(tabs.at(2).prop('aria-label'), 'Select orphans tab');
assert.equal(tabs.at(2).prop('title'), 'Select orphans tab');
assert.equal(tabs.at(0).prop('aria-label'), 'Annotations');
assert.equal(tabs.at(0).prop('title'), 'Annotations');
assert.equal(tabs.at(1).prop('aria-label'), 'Page notes');
assert.equal(tabs.at(1).prop('title'), 'Page notes');
assert.equal(tabs.at(2).prop('aria-label'), 'Orphans');
assert.equal(tabs.at(2).prop('title'), 'Orphans');
});
it('should show the clean theme when settings contains the clean theme option', function () {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment