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

[material-ui][Text Field] Right-to-left icon issue #41418

Closed
Lalliche opened this issue Mar 9, 2024 · 2 comments
Closed

[material-ui][Text Field] Right-to-left icon issue #41418

Lalliche opened this issue Mar 9, 2024 · 2 comments
Labels
component: text field This is the name of the generic UI component, not the React module! package: material-ui Specific to @mui/material status: waiting for author Issue with insufficient information

Comments

@Lalliche
Copy link

Lalliche commented Mar 9, 2024

Related page

https://mui.com/material-ui/customization/right-to-left/

Kind of issue

Unclear explanations

Issue description

I had an issue whie trying to style an input field using TextField.
when I tried to add an icon to the field it appears always on the right because i am using rtl direction in my react app
I tried to adjust it whith styling , when I set the margin to the left the input field disappeared because the icon took all the space
this document didnt show how to fix that

Context

I had an issue whie trying to style an input field using TextField.
when I tried to add an icon to the field it appears always on the right because i am using rtl direction in my react app
I tried to adjust it whith styling , when I set the margin to the left the input field disappeared because the icon took all the space
this document didnt show how to fix that

<TextField
fullWidth
label="Email"
variant="outlined"
size="small"
dir="rtl" // Right-to-left direction
style={{ marginBottom: 10 }}
InputProps={{
startAdornment: <EmailIcon style={{ marginLeft: 5 }} />,
}}

    />

Search keywords: Forms, RTL, icons, textfield

@Lalliche Lalliche added status: waiting for maintainer These issues haven't been looked at yet by a maintainer support: docs-feedback Feedback from documentation page labels Mar 9, 2024
@danilo-leal danilo-leal changed the title RTL Textfield+icon issue [material-ui][Text Field] Right-to-left icon issue Mar 10, 2024
@danilo-leal danilo-leal added component: text field This is the name of the generic UI component, not the React module! package: material-ui Specific to @mui/material labels Mar 10, 2024
@ZeeshanTamboli
Copy link
Member

ZeeshanTamboli commented Mar 17, 2024

It doesn't look like this bug report has enough info for one of us to reproduce it. Just having code snippet won't help us.
Please provide a Stackblitz (https://stackblitz.com/edit/stackblitz-starters-maxhor?file=src%2FApp.tsx), a link to a repository on GitHub, or provide a minimal code example that reproduces the problem.
Here are some tips for providing a minimal example: https://stackoverflow.com/help/mcve.

@ZeeshanTamboli ZeeshanTamboli added status: waiting for author Issue with insufficient information and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer support: docs-feedback Feedback from documentation page labels Mar 17, 2024
Copy link

Since the issue is missing key information and has been inactive for 7 days, it has been automatically closed. If you wish to see the issue reopened, please provide the missing information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: text field This is the name of the generic UI component, not the React module! package: material-ui Specific to @mui/material status: waiting for author Issue with insufficient information
Projects
None yet
Development

No branches or pull requests

4 participants