Make WordPress Core

Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#24268 closed defect (bug) (fixed)

Twenty Thirteen: .reply styling bleeding into other styles

Reported by: johnjamesjacoby's profile johnjamesjacoby Owned by: lancewillett's profile lancewillett
Milestone: 3.6 Priority: normal
Severity: normal Version:
Component: Bundled Theme Keywords: has-patch
Focuses: Cc:

Description

The .reply styling in TwentyThirteen assumes that comments are the only dom elements that will ever have the 'reply' class. This is true in WordPress core, but plugins (like BuddyPress and bbPress) use the 'reply' class for activity stream items, topics, etc...

We're used to fixing this in our own theme compatibility layers, and arguably some responsibility falls on us for using less ambiguous class names or more strict CSS, but in the case of .reply, I think there exists at least some possibility that other plugins might be using the same class (shopping carts, reviews, polls, etc...) and experience similar styling intersections.

I've attached a patch that adds .comment-list before .reply to limit the scope of the style to the intended comments replies, for your consideration.

Attachments (2)

24628.patch (1.6 KB) - added by johnjamesjacoby 13 years ago.
24268.1.diff (2.1 KB) - added by lancewillett 13 years ago.

Download all attachments as: .zip

Change History (8)

#1 @SergeyBiryukov
13 years ago

  • Summary changed from TwentyThirteen .reply styling bleeding into other styles to Twenty Thirteen: .reply styling bleeding into other styles

#2 @lancewillett
13 years ago

Thanks for the report and patch. +1 for making it the selectors a bit more specific.

#3 @lancewillett
13 years ago

Oops, @johnjamesjacoby could you make your patch from WP root?

#4 @lancewillett
13 years ago

.1 adds a few missing cases in style.css and a bit of cleanup for non .reply selectors.

#5 @lancewillett
13 years ago

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

In 24193:

Twenty Thirteen: more specificity for .reply selectors, props johnjamesjacoby for starter patch. Fixes #24268.

#6 @johnjamesjacoby
13 years ago

Thanks Lance for picking up my slack!

Note: See TracTickets for help on using tickets.