Readonly form input optional opt-out

Open Beginner friendly
#7,930 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
66/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
php, symfony
Domain
design, frontend

Research direction

Start by reading the CSS that applies the readonly design and the existing data-ea-slug-field exception; the issue does not name the stylesheet or a test. Check how readonly custom inputs used by widgets such as flatpickr or password generators are styled, then determine what shared opt-out attribute or class fits the existing pattern. Done means custom readonly inputs can retain their input appearance without affecting the slug field behavior.

Written by the indexing model from the issue text.

Description

design feature

Describe the bug
Custom readonly inputs loose their design since 5.9.0, except the slug field (with data-ea-slug-field attribute and css :not([data-ea-slug-field]) filtering)
When using some custom readonly input fields with JS logic (e.g. flatpickr, or password generator), the input field does not look like an input field at all.

To Reproduce
Make a field readonly.

(OPTIONAL) Additional context
Setting data-ea-slug-field attribute on the input field solves the issues.
Maybe there could be a wider attribute / css class to opt-out ofthe new readonly design.

Dominant language
PHP
Stars
4.3k
Forks
1.1k
Avg merge
2d 9h
Merged PRs (30d)
52

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from EasyCorp/EasyAdminBundle

All issues in EasyCorp/EasyAdminBundle

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.