Skip to content

Commit 6236b47

Browse files
authored
fix: swap goto tooltips (#1860)
- Fixes #1826 - Swap "Previous match" and "Next match"
1 parent 52de3d1 commit 6236b47

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

packages/iris-grid/src/GotoRow.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ const GotoRow = forwardRef<GotoRowElement, GotoRowProps>(
386386

387387
<div>
388388
<Button
389-
tooltip="Next match"
389+
tooltip="Previous match"
390390
icon={vsArrowUp}
391391
kind="ghost"
392392
disabled={gotoValue === ''}
@@ -395,7 +395,7 @@ const GotoRow = forwardRef<GotoRowElement, GotoRowProps>(
395395
}}
396396
/>
397397
<Button
398-
tooltip="Previous match"
398+
tooltip="Next match"
399399
icon={vsArrowDown}
400400
kind="ghost"
401401
disabled={gotoValue === ''}

tests/context-menu.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,13 +219,13 @@ test('go to', async ({ page }) => {
219219
await waitForLoadingDone(page);
220220
await expect(page.locator('.iris-grid-column')).toHaveScreenshot();
221221

222-
await page.locator('[aria-label="Previous match"]').first().click();
223-
await page.locator('[aria-label="Previous match"]').first().click();
222+
await page.locator('[aria-label="Next match"]').first().click();
223+
await page.locator('[aria-label="Next match"]').first().click();
224224

225225
await waitForLoadingDone(page);
226226
await expect(page.locator('.iris-grid-column')).toHaveScreenshot();
227227

228-
await page.locator('[aria-label="Next match"]').first().click();
228+
await page.locator('[aria-label="Previous match"]').first().click();
229229

230230
await waitForLoadingDone(page);
231231
await expect(page.locator('.iris-grid-column')).toHaveScreenshot();

0 commit comments

Comments
 (0)