- Issue created by @G4MBINI
- Assigned to pdureau
- π«π·France pdureau Paris
Indeed, in Layout Builder, the order of regions (fields) in the layout is:
- image
- image_badges
- description
- tag_badges
- detail
- title
- detail_end
- footer
Instead of:
- image
- image_badges
- title
- tag_badges
- detail
- detail_end
- description
- footer
It may come form those CSS rules in upstream CSS:
.fr-card__title { order: 2; } .fr-card__desc { order: 3; } .fr-card__end { order: 4; } fr-card__footer { order: 2; } ..
Let's try to override them in overrides.css
- Assigned to G4MBINI
- Status changed to Postponed: needs info
almost 2 years ago 5:29pm 17 March 2023 - π«π·France pdureau Paris
Hi G4MBINI,
It is a bit more complicated than expected :)
They are 3 different orders of slot in cards.
The one from the template:
- title
- description
- tag_badges
- detail
- detail_end
- footer
- image
- image_badges
The one visible in the previews, which is different because of the "order" CSS property:
- image
- image_badges
- title
- tag_badges
- detail
- detail_end
- description
- footer
The one currently in layout builder, which is a mess because of the "order" properties which are also counting the "add blocks" elements:
- image
- image_badges
- description
- tag_badges
- detail
- title
- detail_end
- footer
The fix I have will not restore the preview order, but the template one. Are you OK with that?
- Assigned to pdureau
- Status changed to Active
almost 2 years ago 3:59pm 18 March 2023 - π«π·France G4MBINI BΓ¨gles
Ok ! If the result is good that's fine for me :)
-
pdureau β
committed e4f65622 on 1.0.x
Issue #3346941 by G4MBINI, pdureau: [beta2] Fix card template
-
pdureau β
committed e4f65622 on 1.0.x
- Assigned to G4MBINI
- Status changed to Fixed
over 1 year ago 10:04am 26 March 2023 - Status changed to Fixed
over 1 year ago 2:44pm 1 April 2023