cuny-academic-commons / commons-in-a-box

Commons In A Box - A suite of community and collaboration tools for WordPress, designed especially for academic communities
http://commonsinabox.org
72 stars 14 forks source link

Replace or remove icon16 icons #404

Closed sabernhardt closed 2 years ago

sabernhardt commented 2 years ago

If WordPress Core removes the .icon16 styles (see Trac 35717), this plugin could break a little because of the negative left margin.

https://github.com/cuny-academic-commons/commons-in-a-box/blob/81a51b8dbf6f1c5ecf4bf67a513c9e1832e9ba47/admin/admin-loader.php#L1256

Option 1: Replace the two span elements in the classic welcome panel with dashicons.

<span class="dashicons-before dashicons-admin-settings" aria-hidden="true"></span> <span class="dashicons-before dashicons-admin-appearance" aria-hidden="true"></span>

Then those icons could be positioned to the side:

.getting-started-cbox-classic h4 {
    position: relative;
}
.getting-started-cbox-classic h4 .dashicons-before {
    position: absolute;
    top: 0;
    left: -26px;
    color: #8c8f94;
}

Option 2: Simply remove the icons.

And if you disagree with removing the styles from Core, please comment on the ticket.

r-a-y commented 2 years ago

Thanks @sabernhardt for letting us know about the proposed WP core change. Option 1 works well. See commit f354c67.