Make WordPress Core

Opened 2 years ago

Last modified 6 months ago

#55521 new enhancement

Use dashicons-class in `wp_dashboard_quota` and `wp_dashboard_right_now`

Reported by: kebbet's profile kebbet Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 3.8
Component: Administration Keywords: has-patch
Focuses: ui, css, administration Cc:

Description

Proposal:
Replace hardcoded css-rules for each item in the At a Glance-widget, use dashicons-classes for each item. This makes adding new items to the widget easier, simply just add a dashicons-before-class the your new items.

Background:
So using dashboard_glance_items to add custom items to the post list is easy, but changing icons without adding new css with a file or inline to the admin views is hard, since the hardcoded rules overrides dashicons-before on my added items.

Change History (4)

This ticket was mentioned in PR #2499 on WordPress/wordpress-develop by kebbet.


2 years ago
#1

  • Keywords has-patch added; needs-patch removed

#2 @kebbet
2 years ago

  • Keywords needs-patch added; has-patch removed

So now when using dashboard_glance_items I can add icons to items with <a class="dashicons-before dashicons-carrot" href="?edit"> instead of adding custom CSS-files or inline CSS to my plugin.

#3 @kebbet
2 years ago

  • Keywords has-patch added; needs-patch removed

#4 @kebbet
6 months ago

Patch is updated against trunk.

Note: See TracTickets for help on using tickets.