[wp-trac] [WordPress Trac] #26396: Implement a generic clearfix

WordPress Trac noreply at wordpress.org
Wed Mar 18 18:50:06 UTC 2015


#26396: Implement a generic clearfix
----------------------------+---------------------------------
 Reporter:  helen           |       Owner:
     Type:  enhancement     |      Status:  new
 Priority:  low             |   Milestone:  Awaiting Review
Component:  Administration  |     Version:
 Severity:  minor           |  Resolution:
 Keywords:                  |     Focuses:  ui, administration
----------------------------+---------------------------------
Changes (by afercia):

 * keywords:  ui-fous =>
 * focuses:   => ui, administration


Comment:

 +1 for this.
 A more modern method to contain floated elements would be very useful
 especially now that core is using a focus style with box-shadows. In many
 places they're "broken" cause `overflow: hidden` used to contain floats.
 See for example: #29897 and #26646. Would suggest:
 {{{
 .contain-floats:after {
     content: '';
     display: table;
     clear: both;
 }
 }}}

 Naming convention to discuss of course.

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


More information about the wp-trac mailing list