[wp-trac] [WordPress Trac] #48594: Change text alignment

WordPress Trac noreply at wordpress.org
Wed Nov 13 10:01:18 UTC 2019


#48594: Change text alignment
-------------------------------+----------------------
 Reporter:  milomen            |       Owner:  (none)
     Type:  defect (bug)       |      Status:  closed
 Priority:  normal             |   Milestone:
Component:  Editor             |     Version:  5.3
 Severity:  normal             |  Resolution:  invalid
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+----------------------
Changes (by youknowriad):

 * status:  new => closed
 * resolution:   => invalid
 * severity:  blocker => normal
 * milestone:  Awaiting Review =>


Comment:

 In previous versions of WordPress, text alignment were using inline styles
 but inline styles have a lot of problems (SEO...) so we switched to
 classNames.

 By inspecting your site, I can see that your theme style has this style
 defined

 {{{
 .entry-content p, .entry-summary p {
     text-align: justify;
 }
 }}}

 This is overriding the alignment class defined by WordPress

 {{{
 .has-text-align-center {
     text-align: center;
 }
 }}}

 For now, I'm considering this a theme issue and I'd suggest contacting the
 theme author about it. Ideally themes shouldn't have strong specificity
 like this. That said, I'm noting this and if we notice this in several
 times, we might consider forcing a higher specificity in Core itself.

 --
 I don't think we need to open a Github issue for this right now, but for
 future Block Editor related issues, it's better to report there. Thanks.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/48594#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list