Make WordPress Core

Opened 7 years ago

Closed 6 years ago

#42651 closed enhancement (fixed)

Code within a field description should not be italic

Reported by: johnbillion's profile johnbillion Owned by: johnbillion's profile 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 7 years ago.
42651.diff (650 bytes) - added by chetan200891 7 years ago.
Created patch to make font style: normal for code within description.

Download all attachments as: .zip

Change History (12)

#1 @johnbillion
7 years ago

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

@chetan200891
7 years ago

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

#2 @chetan200891
7 years ago

  • Keywords has-patch added; needs-patch removed

#3 @annatly2
7 years 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
7 years 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
7 years ago

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

#6 @johnbillion
6 years ago

  • Milestone changed from 5.0 to 5.1

#7 @pento
6 years ago

  • Milestone changed from 5.1 to 5.2

#8 @desrosj
6 years 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
6 years ago

  • Milestone changed from 5.2 to 5.3

#10 @johnbillion
6 years 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.