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

labelProps are not passed to the label component in TextInput and TextArea #5862

Closed
1 of 2 tasks
devnaumov opened this issue Mar 4, 2024 · 2 comments
Closed
1 of 2 tasks
Labels
Fixed patch Completed issues that will be published with next patch (1.0.X)

Comments

@devnaumov
Copy link

Dependencies check up

  • I have verified that I use latest version of all @mantine/* packages

What version of @mantine/* packages do you have in package.json?

7.6.0

What package has an issue?

@mantine/core

What framework do you use?

Next.js

In which browsers you can reproduce the issue?

Chrome

Describe the bug

Try to pass props to the label in TextInput or TextArea via labelProps prop:

<TextInput
  labelProps={{ className: classes.label, style: { color: 'red' } }}
  wrapperProps={{ className: classes.wrapper, style: { color: 'red' } }}
/>

expected: labelProps are applied
actual: labelProps are not applied (wrapperProps works correctly for example)

If possible, include a link to a codesandbox with a minimal reproduction

No response

Possible fix

No response

Self-service

  • I would be willing to implement a fix for this issue
@rilrom
Copy link
Contributor

rilrom commented Mar 4, 2024

Can confirm that className and style are not being applied to labelProps, descriptionProps and errorProps.

Have narrowed it down to the use of ctx?.getStyles. If _getStyles is used they are applied correctly.

rtivital added a commit that referenced this issue Mar 12, 2024
…s`, `descriptionProps` and `errorProps` not being passed to the corresponding element (#5862)
@rtivital rtivital added the Fixed patch Completed issues that will be published with next patch (1.0.X) label Mar 12, 2024
@rtivital
Copy link
Member

Fixed in 7.6.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fixed patch Completed issues that will be published with next patch (1.0.X)
Projects
None yet
Development

No branches or pull requests

3 participants