Make WordPress Core

Opened 10 years ago

Closed 6 years ago

#40594 closed enhancement (fixed)

Reset box shadow for links in the admin bar

Reported by: FlorianBrinkmann Owned by: sabernhardt
Priority: normal Milestone: 5.8
Component: Toolbar Version: 4.8
Severity: normal Keywords: has-patch needs-testing
Cc: Focuses: css

Description

I am currently working on a theme which uses box-shadow for link underline. Because the box-shadow property does not get a reset in the admin bar CSS, each link in the admin bar gets a box shadow too (see screenshot).

Attachments (3)

admin-bar-box-shadow.png​ (30.8 KB ) - added by FlorianBrinkmann 10 years ago.
40594.patch​ (415 bytes ) - added by FlorianBrinkmann 10 years ago.
Adds reset for box-shadow in admin-bar.css
40594.1.patch​ (348 bytes ) - added by sabernhardt 6 years ago.
refresh

Download all attachments as: .zip

Change History (7)

@FlorianBrinkmann
10 years ago

Adds reset for box-shadow in admin-bar.css

#1 @FlorianBrinkmann
10 years ago

  • Keywords has-patch added

#2 @danieltj
9 years ago

  • Keywords needs-testing added

Reviving this so we can look at implementing something. A CSS reset should be simple enough to get something worked out. I'll see if I can test the patch that @FlorianBrinkmann has provided on 4.9.

#3 @sabernhardt
6 years ago

  • Focuses css added
  • Milestone Awaiting Review → 5.8
  • Owner set to sabernhardt
  • Status new → accepted

Patch refreshed

#4 @ryelle
6 years ago

  • Resolution → fixed
  • Status accepted → closed

In 50847:

Toolbar: Reset box-shadow on links.

This prevents any theme-added box-shadow styles from applying to the toolbar items.

Props sabernhardt, florianbrinkmann.
Fixes #40594.

Note: See TracTickets for help on using tickets.