-
-
Notifications
You must be signed in to change notification settings - Fork 49.7k
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
Card: can title not be wrapped with h3? #3388
Comments
👌 Give us a PR~ |
@xiaofan2406 ping~ |
@afc163 sure. will work on it. |
This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
versions
2.0.1
For Card component,
title
accepts anReact.Element
, but it is wrapped with anh3
regardless. It can cause many styling issues.In my own case, I got an warning
warning.js:36 Warning: validateDOMNesting(...): <h3> cannot appear as a child of <h3>.
, because mytitle
element contains an h3 element.Is it possible to change the logic so that it is wrapped with
h3
if title is a string, and withdiv
if title is an element?The text was updated successfully, but these errors were encountered: