scratchfoundation / scratchfoundation/scratch-blocks

In RTL, while editing a number field, the negative sign is on the incorrect side

Open
#1,707 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

High Prevalence High Severity localization priority 2
Dominant language
JavaScript
Stars
2.8k
Forks
1.6k
Avg merge
4h 51m
Merged PRs (30d)
12

Description

Expected Behavior

The negative sign should always appear on the correct side while typing in a number.

Actual Behavior

In RTL, while editing a number, the negative sign incorrectly appears on the right side. Once the edit is accepted, the negative sign moves to the correct side (after https://github.com/LLK/scratch-blocks/pull/1702):

rtl-negative-sign

In a report from an educator for the Perisian language, this bug results in young people thinking they need to type 10- in order for it to display correctly. Then the value is wrong and doesn't do what they expect.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the RTL number-editing behavior and the changes in pull request #1702. Reproduce typing a negative number in an RTL locale, then verify that the sign appears on the correct side while editing and remains correct after acceptance.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend, internationalization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.