{"id":2654,"date":"2022-06-08T11:11:34","date_gmt":"2022-06-08T11:11:34","guid":{"rendered":"https:\/\/salientsoft.co.uk\/?p=2654"},"modified":"2022-06-08T11:11:34","modified_gmt":"2022-06-08T11:11:34","slug":"primeng-v13-panel-header-text-not-centering","status":"publish","type":"post","link":"https:\/\/salientsoft.co.uk\/?p=2654","title":{"rendered":"PrimeNG V13 Panel Header Text Not Centering"},"content":{"rendered":"\n<p>I hit an issue where a PrimeNG panel, used in a Dataview component in grid mode, was not centering its header text after upgrading to the latest V13.<\/p>\n<p>The issue was weird &#8211; the header container div was set to flex by the Panel component itself, but when I used <strong><em>justify-content: center<\/em><\/strong> to center the text in a dependent span, it remained left justified despite all my efforts to check for other style issues, force styling with !important etc.<\/p>\n<p>When I checked the latest PrimeNG showcase online, I noticed that this also has the same problem. I noted that other containers\/elements in the Panel such as the content container div did not use flex, so I felt happy to force the styling for the container back to block and use <em><strong>text-align: center<\/strong><\/em> instead. I did this locally in the affected microapp component rather than the overall theme, but might rethink this later and standardize if I hit the issue again.<\/p>\n<p>This solved the problem and the text centered correctly.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I hit an issue where a PrimeNG panel, used in a Dataview component in grid mode, was not centering its header text after upgrading to the latest V13. The issue was weird &#8211; the header container div was set to flex by the Panel component itself, but when I used justify-content: center to center the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[198,11,209,77],"tags":[13,40,16],"_links":{"self":[{"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/2654"}],"collection":[{"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2654"}],"version-history":[{"count":1,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/2654\/revisions"}],"predecessor-version":[{"id":2655,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/2654\/revisions\/2655"}],"wp:attachment":[{"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2654"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2654"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2654"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}