WordPress.org

Make WordPress Core

#21932 closed defect (bug) (fixed)

Twenty Twelve: Missing style rules for html elements that can be added in the text widget.

Reported by: iamtakashi Owned by: lancewillett
Milestone: 3.5 Priority: low
Severity: normal Version:
Component: Bundled Theme Keywords: has-patch
Focuses: Cc:

Description

Since Twenty Twelve limits the styles for many html elements specifically inside .entry-content and .comment-content, (See Line 662 - 864 in style.css) those that can be inside a text widget are left unstyled.

As users are able to add html elements in a text widget, those should be styled accordingly as well.

Attachments (3)

widget_test_tags.txt (772 bytes) - added by DrewAPicture 19 months ago.
Test tags
21932.diff (669 bytes) - added by DrewAPicture 19 months ago.
ul, li and p
21932.2.diff (647 bytes) - added by lancewillett 19 months ago.

Download all attachments as: .zip

Change History (9)

comment:1 lancewillett19 months ago

  • Keywords needs-patch added
  • Milestone changed from Awaiting Review to 3.5
  • Priority changed from normal to low

Thanks for the ticket, Takashi. I'm going to mark as minor since it's not a blocker for 1.0 going to Extend, in my opinion. But, it should be addressed soon.

comment:2 lancewillett19 months ago

#21965 was marked as a duplicate.

DrewAPicture19 months ago

Test tags

comment:3 lancewillett19 months ago

I vote on only styling simple things, like paragraph elements and unordered lists. (Not headings and all other possible HTML input.)

DrewAPicture19 months ago

ul, li and p

comment:4 DrewAPicture19 months ago

  • Cc xoodrew@… added
  • Keywords has-patch added; needs-patch removed

comment:5 lancewillett19 months ago

Thanks for the patch and screenshots. After testing, I think we should apply the p styles to .widget and the list and list item styles only to .textwidget.

lancewillett19 months ago

comment:6 lancewillett19 months ago

  • Owner set to lancewillett
  • Resolution set to fixed
  • Status changed from new to closed

In [21990]:

Twenty Twelve: style basic HTML elements in text widgets, props DrewAPicture. Fixes #21932.

Note: See TracTickets for help on using tickets.