-
-
Notifications
You must be signed in to change notification settings - Fork 6
Fix: change <p> to <div> in card description #24
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
base: main
Are you sure you want to change the base?
Conversation
add classnames for description and title
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was wrong when I said to make the <p> in CardDescription a <div>. I was confusing it with my reasoning for modifying AccordionContent, where it acts as a container and wrapped all children in a <p>. In this case CardHeader takes the role of the container which can contain arbitrary content, meaning CardTitle and CardDescription should remain as styled <h2> and <p> elements.
I do like adding class names to CardTitle and CardDescription though, this allows additional <h2> and <p> elements to exist in a CardHeader without singlestage styling them.
| <CardHeader> | ||
| <CardTitle>"Log in to your account"</CardTitle> | ||
| <CardTitle> | ||
| <p>"Log in to your account"</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This shouldn't contain a <p> because CardTitle already wraps children in a <h2>.
|
|
||
| view! { | ||
| <p {..global_attrs_1} {..global_attrs_2}> | ||
| <div |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know we talked about it and I said to make this a <div> but I was wrong, Please make this a <p> again.
| </CardTitle> | ||
| <CardDescription> | ||
| "Enter your details below to log in to your account" | ||
| <p>"Enter your details below to log in to your account"</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this <p> to support other requested changes.
add classnames for description and title