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

Issue - Input Element UI CSS #862

Open
chandansomani opened this issue Dec 28, 2024 · 4 comments
Open

Issue - Input Element UI CSS #862

chandansomani opened this issue Dec 28, 2024 · 4 comments

Comments

@chandansomani
Copy link

I have encounter a issue in Input Element
Steps to reproducde :

  1. Go To : https://www.material-tailwind.com/docs/react/modal
  2. Open Add Product Model :
  3. Fill 1st Inputbox box with some text, ( or fill values in input text box )
  4. Move focus to other element

image

The Top border of Input Element Text box, border goes hidden, the input label is causing issue. It can we seen happing for each instance of input box.

@tman16
Copy link

tman16 commented Jan 8, 2025

Same issue

the culprit is global.css applying

.border-t-transparent {
border-top-color: #0000 !important;
}

Make sure you don't use a class applied to top only i.e. border-t-blue-gray-200, if you have this use without the "-t-" for example: border-blue-gray-200

For the focus its the otherway round you must include the "-t-" so use for example focus:border-t-gray-900, if you don't specify the "-t-" it will be transparent

In full try this
className="w-full placeholder:opacity-100 focus:border-t-gray-900 border-blue-gray-200"

@chandansomani
Copy link
Author

Same issue

the culprit is global.css applying

.border-t-transparent { border-top-color: #0000 !important; }

Make sure you don't use a class applied to top only i.e. border-t-blue-gray-200, if you have this use without the "-t-" for example: border-blue-gray-200

For the focus its the otherway round you must include the "-t-" so use for example focus:border-t-gray-900, if you don't specify the "-t-" it will be transparent

In full try this className="w-full placeholder:opacity-100 focus:border-t-gray-900 border-blue-gray-200"

This didnt help,
i would like to elaborate the issue is the Label text of the Component,
Just set label={"Some text"} and remove labelProps
You can see the culprit, this child label

@chandansomani
Copy link
Author

Found one issue :
1] The Scrollbar of overflow has a bug, also CardHeader has wired behaviour
image

2] The Card Component has a default Padding , not configurable :
image

@sanwalsulehri
Copy link

what if i done this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants