WordPress.org

Make WordPress Core

Opened 19 months ago

Closed 5 weeks ago

#42651 closed enhancement (fixed)

Code within a field description should not be italic

Reported by: johnbillion Owned by: johnbillion
Milestone: 5.3 Priority: normal
Severity: trivial Version:
Component: Administration Keywords: has-screenshots has-patch
Focuses: administration Cc:

Description

Given some descriptive text in the admin area such as the following, the text within the <code> element appears in italic, but ideally it should not.

<p class="description">This is italic and so is <code>$this</code>.</p>

Some CSS along the lines of .description code { font-style: normal; } should do the trick.

Attachments (2)

Screen Shot 2017-11-21 at 16.20.10.png (12.7 KB) - added by johnbillion 19 months ago.
42651.diff (650 bytes) - added by chetan200891 19 months ago.
Created patch to make font style: normal for code within description.

Download all attachments as: .zip

Change History (12)

#1 @johnbillion
19 months ago

  • Keywords has-screenshots good-first-bug ui-feedback added

@chetan200891
19 months ago

Created patch to make font style: normal for code within description.

#2 @chetan200891
19 months ago

  • Keywords has-patch added; needs-patch removed

#3 @annatly2
18 months ago

  • Resolution set to worksforme
  • Status changed from new to closed

To make just the text inside the code tags not italic, you'll want to include this in the CSS:

.description code { font-style: normal; }

#4 @johnbillion
18 months ago

  • Keywords good-first-bug ui-feedback removed
  • Milestone changed from Awaiting Review to 5.0
  • Resolution worksforme deleted
  • Status changed from closed to reopened

Right. The intention of this ticket is to include that by default.

#5 @johnbillion
18 months ago

  • Owner set to johnbillion
  • Status changed from reopened to reviewing

#6 @johnbillion
9 months ago

  • Milestone changed from 5.0 to 5.1

#7 @pento
6 months ago

  • Milestone changed from 5.1 to 5.2

#8 @desrosj
3 months ago

This ticket has not received any attention during the 5.2 cycle. With beta 1 tomorrow, going to punt this to 5.3.

#9 @desrosj
3 months ago

  • Milestone changed from 5.2 to 5.3

#10 @johnbillion
5 weeks ago

  • Resolution set to fixed
  • Status changed from reviewing to closed

In 45389:

Administration: Don't apply italic formatting to code blocks in setting descriptions.

Props chetan200891

Fixes #42651

Note: See TracTickets for help on using tickets.