Skip to content

Commit 0427cdb

Browse files
Fix inconsitencies
1 parent 677b7b0 commit 0427cdb

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/components/MorphemeBox.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export function MorphemeBox({
7373

7474
const editLabel = localizedStrings['%interlinearizer_tokenChip_editMorphemes%'].replace(
7575
'{token}',
76-
token.surfaceText,
76+
() => token.surfaceText,
7777
);
7878

7979
return (
@@ -103,6 +103,7 @@ export function MorphemeBox({
103103
aria-label={editLabel}
104104
className={formClassName}
105105
style={formStyle}
106+
tabIndex={-1}
106107
type="button"
107108
onClick={(e) => {
108109
e.preventDefault();

src/components/TokenChip.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ export function TokenChip({
414414
<button
415415
aria-label={localizedStrings[
416416
'%interlinearizer_tokenChip_defineMorphemes%'
417-
].replace('{token}', token.surfaceText)}
417+
].replace('{token}', () => token.surfaceText)}
418418
className={`tw:flex tw:flex-row tw:items-center tw:rounded tw:px-0.5 tw:font-mono tw:text-xs tw:italic tw:text-muted-foreground/50 tw:transition-colors${disabled ? '' : ' tw:cursor-pointer tw:hover:bg-accent'}`}
419419
tabIndex={-1}
420420
type="button"

0 commit comments

Comments
 (0)