JedWatson / JedWatson/react-select

Long text in RTL disappear

Open
#4,967 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

awaiting-author-response issue/bug-unconfirmed
Dominant language
TypeScript
Stars
28k
Forks
4.1k
PR merge metrics
No merged PRs in 30d

Description

Im using a singleValue with these CSS:
color: rgb(35, 31, 32);
max-width: 100%;
overflow: hidden;
position: initial;
text-overflow: ellipsis;
white-space: nowrap;
top: 50%;
transform: none;
box-sizing: border-box;
font-family: Arimo;
font-size: 14px;
line-height: 20px;
margin: 0px;

When my BODY is RLT, and the above style is on, the text goes like it is LTR - so it not 'sit' in the
image

BUT(!), when I change the CSS manually from the devtools - uncheck and check again the white-space: nowrap;
the text shown.
image

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 reproducing the issue with a react-select singleValue, an RTL body, and the listed styles, especially white-space: nowrap. Compare the initial rendering with the result after toggling that rule in devtools; done means long RTL text remains visible and correctly positioned without manually toggling the style.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.