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

[5.x]: color field on element card styling issue #14296

Closed
WHITE-developer opened this issue Feb 5, 2024 · 5 comments
Closed

[5.x]: color field on element card styling issue #14296

WHITE-developer opened this issue Feb 5, 2024 · 5 comments
Labels

Comments

@WHITE-developer
Copy link

What happened?

Description

When adding a color field to the elements card to color preview takes up the entire card

Steps to reproduce

  1. create an element with a color field
  2. add the color field to the element card

Expected behavior

image

Actual behavior

image

Craft CMS version

5.0.0-alpha.11

PHP version

8.3.2

Operating system and version

Ubuntu 22.04

Database type and version

mysql 8.0.32

Image driver and version

No response

Installed plugins and versions

No response

@brandonkelly
Copy link
Member

I’m not able to reproduce this. Tested with the same setup – Matrix field in cards view, set to 50% width, and tried both grid and list view options. Checked in Firefox, Safari, and Edge.

a Matrix field with one nested entry, displayed as a card view that previews its color field value

Do you have any custom CSS that could be affecting it?

@lukas-jansen
Copy link

🤔 I'll double check tomorrow with plugins disabled, but no custom styling of myself is loaded in the cp

@WHITE-developer
Copy link
Author

Looks like it was Seomatic that conflicts with the static class

@brandonkelly
Copy link
Member

Thanks for looking into it!

@khalwat
Copy link
Contributor

khalwat commented Feb 6, 2024

Here's the culprit: https://tailwindcss.com/docs/position#statically-positioning-elements

I will fix this by prefixing my Tailwind CSS build -- something I probably should have been doing already.

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

No branches or pull requests

4 participants