backdrop-contrib / snazzy

Theme for Backdrop CMS
GNU General Public License v2.0
1 stars 0 forks source link

Contextual links not working #5

Closed olafgrabienski closed 3 years ago

olafgrabienski commented 3 years ago

As of release 1.1.0, I don't see no more contextual links on my site, when Snazzy is the default theme. I guess, this is a side-effect of multiline support to link animation.

In #3, the border-bottom approach was replaced by animating (the size of) a linear-gradient background-image. This change seems to hide contextual links, removing the gear-select background-image of contextual links (around line 102 of the commit).

I was able to fix the contextual links in a Snazzy sub-theme using the following CSS rules:

.contextual-links-wrapper > a {
  background-image: url(/core/modules/contextual/images/gear-select.png);
}
.contextual-links-wrapper > a:hover {
  background-size: auto;
}

Haven't tested it extensively, though. Is it the right approach? We should probably also check if other elements are affected similarly.

indigoxela commented 3 years ago

@olafgrabienski nice catch! Does the PR fix it for you?

olafgrabienski commented 3 years ago

Thanks, it does! (And using not looks also good.)