Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow all text overflow properties inside Inline just like in Box #857

Open
tvanantwerp opened this issue Jun 2, 2023 · 0 comments
Open
Labels
feature-request "Wouldn't it be cool if I could...?" ui-extensions

Comments

@tvanantwerp
Copy link

Is your feature request related to a problem? Please describe.
I want to be able to mark specific series of words in a sentence to not have word or line breaks. (Example: think of a proper two-word name that you would prefer to always have together and never separated by text wrapping. You'd rather the whole thing get bumped to the next line than only half of it.)

This works inside Box with css={{ whiteSpace: 'nowrap' }}, but most of the overflow-related properties aren't officially supported inside Inline.

Describe the solution you'd like
The css property whiteSpace is supported in the Box component, but not the Inline component. It would be helpful for it to be officially supported inside the Inline component as well.

Describe alternatives you've considered
Currently, I am using this unsupported workaround which nevertheless renders as I want:

    <Inline
      css={{
        // eslint-disable-next-line @typescript-eslint/ban-ts-comment
        // @ts-ignore
        whiteSpace: 'nowrap',
      }}
    >
      // Inline text I don't want broken by text wrapping goes here...
    </Inline>
@tvanantwerp tvanantwerp added feature-request "Wouldn't it be cool if I could...?" needs-triage labels Jun 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request "Wouldn't it be cool if I could...?" ui-extensions
Projects
None yet
Development

No branches or pull requests

3 participants
@tvanantwerp @auchenberg-stripe and others