Fix annoying hierarchy error with Yrbl
`<div>` cannot be a descendend of `<p>`, and `{subtitle}`s sometimes need to have `<div>`s. Just switch from `<p>` to `<div>`, and let the client decide when the actual text paragraphs are.
This commit is contained in:
parent
abbeb45d17
commit
ac93b379a9
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ export default class extends React.PureComponent<Props> {
|
|||
{(title || subtitle) && (
|
||||
<div className="yrbl__content">
|
||||
<h2 className="section__title">{title}</h2>
|
||||
<p className="section__subtitle">{subtitle}</p>
|
||||
<div className="section__subtitle">{subtitle}</div>
|
||||
</div>
|
||||
)}
|
||||
{actions}
|
||||
|
|
Loading…
Reference in a new issue