laravel / nova-issues

554 stars 35 forks source link

Text fields have different states, but looks exactly same #6258

Closed webard closed 6 months ago

webard commented 6 months ago

Description:

image

This problem exists only on light mode, in dark mode there is little difference:

image

But in my opinion readonly field should be more dimmed than field with placeholder.

Detailed steps to reproduce the issue on a fresh Nova installation:

potsky commented 6 months ago

For me all simple text fields (not email, not date, ...) look like disabled but we can still fill and modified them as expected.

They all have this attribute data-disabled="false".

Screenshot 2024-03-06 - 16-36-56@2x
webard commented 6 months ago

Exactly, there is no problem with filling data, but styling might be confusing for users.

morhi commented 6 months ago

The issue is in vendor/laravel/nova/resources/css/form.css on line 19. As said already the attribute of the input fields is set to data-disabled="false", but the style does not care about the value set for this attribute, so it gets applied to all input elements.

github-actions[bot] commented 6 months ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.