Skip to content

Move the 100% match indicator into the editor menu - #4413

Open
mathjazz wants to merge 1 commit into
mozilla:mainfrom
mathjazz:4411-tm-match-badge
Open

Move the 100% match indicator into the editor menu#4413
mathjazz wants to merge 1 commit into
mozilla:mainfrom
mathjazz:4411-tm-match-badge

Conversation

@mathjazz

@mathjazz mathjazz commented Aug 14, 2026

Copy link
Copy Markdown
Collaborator

Fix #4411.

The indicator pushed the menu down by its own height on every string that had a perfect match, and let it back up on every string that didn't. Moving between such strings made the menu jump, which #4410 made worse by removing the confirmation dialog that used to slow that movement down.

Show it next to the translation length instead.

Available on DEV:
https://pontoon.allizom.org/sl/pontoon-test-2/all-resources/?list=322412,322413,322414,322415,322416&string=322412

Screenshot 2026-08-14 at 18 23 32

The indicator pushed the menu down by its own height on every string
that had a perfect match, and let it back up on every string that didn't.
Moving between such strings made the menu jump, which mozilla#4410 made worse by
removing the confirmation dialog that used to slow that movement down.

Show it next to the translation length instead.
@mathjazz
mathjazz requested a review from flodolo August 14, 2026 15:01
expect(indicator).not.toBeNull();
expect(indicator.textContent).toContain('100%');
// The badge is too small for the whole sentence, so it goes in the tooltip
expect(indicator.getAttribute('title')).toBe(

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems too specific of a test?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Evaluate different solution for "100% TM" match banner

2 participants