Skip to content

bug: card-title sets its own (incorrect) text color #134

Description

@AtmoFX

What version of FlyonUI are you using?

2.4.1

Which browsers are you seeing the problem on?

All browsers

Reproduction URL

https://play.tailwindcss.com/a4Rs3y7iVO

Describe your issue

The image overlay example, in e.g. theme Spotify, has a not-so-easy-to-read white text (forced with text-white class).

One may think we can just remove text-white and it works, but not for the title as .card-title has the rule: color: var(--color-base-content);.

According to doc, the card-title h2 is a descendent of the card-body div, which has the (correct) text color set on it. As a result, it would be more convenient (more correct?) for card-title to simply inherit the text color from its card-body ancestor.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions