Making WordPress.org

Opened 4 weeks ago

Closed 4 weeks ago

#8460 closed defect (bug) (fixed)

Broken box-shadow and border on hovering "Create a new ticket" button

Reported by: umesh.nevase Owned by: obenland
Priority: normal Milestone:
Component: Trac Keywords:
Cc:

Description

On the ​https://core.trac.wordpress.org/tickets/latest page, the "Create a New Ticket" button exhibits a visual styling bug when hovered over. The border and box-shadow elements do not render properly or align correctly with the button edges.

Ref: ​https://core.trac.wordpress.org/ticket/66319

Attachments (1)

hover-image.png​ (73.8 KB ) - added by umesh.nevase 4 weeks ago.

Download all attachments as: .zip

Change History (3)

#1 @dineshinau
4 weeks ago

Hovering the "Create a new ticket" button on Trac report pages (for example ​https://core.trac.wordpress.org/tickets/latest) shows a pale grey box to the right of the button.

The generic :link:hover, :visited:hover rule in trac.css applies box-shadow: 0 0 0 .15em rgba(238, 238, 238, .5) to the link. .create-new-ticket a in wp-trac.css already resets background-color and color on hover, but not box-shadow, so the halo still shows around the inner link.

PR: ​https://github.com/WordPress/wordpress.org/pull/1071

The patch resets box-shadow for .create-new-ticket a on :hover and :focus in wp-trac.css. Its specificity is higher than the trac.css rule, so load order doesn't matter, and other links keep the existing hover style.

Before/after screenshots are in the PR description. Reviews and testing on other Trac sites are welcome.

#2 @obenland
4 weeks ago

  • Owner set to obenland
  • Resolution → fixed
  • Status new → closed

In 15364:

Trac: Fix: broken box shadow on hover .create-new-ticket button

Props umeshnevase, timse201.
Closes ​https://github.com/WordPress/wordpress.org/pull/1061.
Fixes #8460.

Note: See TracTickets for help on using tickets.