Collection fields have incorrect border radius and borders in edit/new forms

Aperta
#7,951 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
Mezza giornata
Idoneità per principianti
62/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
css, php, symfony
Ambito
frontend

Direzione di ricerca

Start from the CollectionField form type and the frontend assets/templates that render collection items, then identify the hover rules that set border-radius. Reproduce with a form containing a CollectionField whose items are themselves CollectionFields, and check how first/last/middle items are selected in CSS. Done means the first item keeps rounded top corners, the last keeps rounded bottom corners, middle items stay square, and hover does not change which corners are rounded.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug design
Description

There seems to be a styling issue with nested CollectionField elements in new/edit forms.

The problem occurs when a CollectionField contains multiple fields, which are themselves of type CollectionField.

When hovering over collection items, the border radius is applied inconsistently:

  • Sometimes the top corners are rounded when they should be square.
  • Sometimes the bottom corners are rounded when they should be square.
  • The rounded corners appear on the wrong side depending on the position of the element.
Expected behavior

The border radius should depend on the position of the element within the collection.

For example, the first item should have rounded top corners, the last item should have rounded bottom corners, and middle items should have square corners.

Hovering over an item should not change this behavior or cause the rounded corners to appear on the wrong side.

Actual behavior

When hovering over collection items, the border radius is applied inconsistently. The rounded corners sometimes appear on the opposite side of the element.

Lingua principale
PHP
Stelle
4.3k
Fork
1.1k
Merge medio
2g 9h
PR unite (30g)
52

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di EasyCorp/EasyAdminBundle

Tutte le issue di EasyCorp/EasyAdminBundle

Issue simili

Altre issue su PHP

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.