WordPress.org

Make WordPress Core

Opened 13 months ago

Last modified 4 months ago

#41138 new enhancement

Add classes to Widgets in widgets.php and customize.php pages

Reported by: alexvorn2 Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Widgets Keywords: ui-feedback
Focuses: ui, administration Cc:

Description

Add widget base id class to widgets so developers could add custom CSS styles to their custom widgets.

Currently the widgets have only "widget" class and "ui-draggable".

What do you think? I think it's a great idea to highlight custom widgets with different colors, so users can easily find new installed widgets from plugins. (Maybe some one with have other purposes)

Attachments (1)

widget-background-color.png (70.3 KB) - added by alexvorn2 13 months ago.
like this

Download all attachments as: .zip

Change History (5)

@alexvorn2
13 months ago

like this

#1 @SergeyBiryukov
13 months ago

  • Focuses ui administration added

#2 @welcher
4 months ago

  • Keywords ui-feedback added

I think this could easily become a visual nightmare. Love to get some UI/UX input on this.

#3 @alexvorn2
4 months ago

Widgets are becoming more and more, we need to do something because finding the new installed widget from a custom plugin - is not so easy.

#4 @welcher
4 months ago

Perhaps, but if we add a class with the intent of differentiating via colors determined by the plugin author, then we are in the same situation but now all the widget have different colors. So the experience ( in the worst-case ) would be confusing AND ugly.

I certainly like the idea of making it easier to see new widgets, but am not sold on this specific approach.

Last edited 4 months ago by welcher (previous) (diff)
Note: See TracTickets for help on using tickets.