In https://github.com/wagtail/wagtail/pull/4821 the menu font icons are replaced with SVG icons. It is a nice start. In this issue an overview of work to be done to have SVG icons everywhere.
We choose to switch to SVG icons for accessibility (title attr and aria labels). But SVG icons are also easier to maintain, customise and extend. All icons are all-ready converted to SVG. We need to dorp the icon font reference (CSS) and use the SVG icon like this:
{% load wagtailadmin_tags %}
{% icon name="rocket" classname="..." title="Launch" %}
The intention is to drop Wagtail font icon and CSS from future Wagtail releases. We need to decide what is needed for a proper deprecation process.
Priority
Icon font usage that needs to be refactored:
<h1 class="icon icon-image">Images</h1> https://github.com/wagtail/wagtail/pull/6121messages success https://github.com/wagtail/wagtail/pull/6124button bicolor icon icon-plus #6151dropdown-toggle icon icon-arrow-down #6151 o-icon c-dropdown__toggle [ icon icon-arrow-down #6151 wagtail-icon wagtail-icon-wagtail https://github.com/wagtail/wagtail/pull/6125MenuItems (including ModelAdminMenuItem and GroupMenuItem) #6402 help-block help-critical @Scotchester #6457 .url_field .input:before @Scotchester (check whether we can easily add an SVG element there).page-chooser .unchosen:before#footer. arrow down, account, logout.title-wrapper:before @thibaudcolas Additional icon font work:
class_name or classname. https://github.com/wagtail/wagtail/pull/6125#discussion_r439176243I'd propose to keep this issue as a meta issue to keep track of progress. Work can be done in separate issues and pull requests. To keep pull requests reviewable.
Wagtail userbar - wagtail/admin/templates/wagtailadmin/userbar/base.html
uses
<i class="wagtail-icon wagtail-icon-wagtail"></i>
Working on buttons with icons
@Scotchester @rinti and I have expressed some interest in trying to get the bulk of this done in time for Wagtail 2.11, scheduled for release on 2020-11-01. With the 2-week release candidate period, that leaves us until 2020-10-16 to tackle all of the icons changes, and the new documentation.
I鈥檝e tagged us on the individual tasks we鈥檙e intending to do 鈥撀爄f others want to pick up other tasks please let people know via a comment.
@allcaps how does that sound?
Most helpful comment
@Scotchester @rinti and I have expressed some interest in trying to get the bulk of this done in time for Wagtail 2.11, scheduled for release on 2020-11-01. With the 2-week release candidate period, that leaves us until 2020-10-16 to tackle all of the icons changes, and the new documentation.
I鈥檝e tagged us on the individual tasks we鈥檙e intending to do 鈥撀爄f others want to pick up other tasks please let people know via a comment.
@allcaps how does that sound?