Skip to content

Toolbar: Fixed styles being applies to nested elements#2980

Merged
RunDevelopment merged 1 commit intoPrismJS:masterfrom
RunDevelopment:issue2974
Jul 3, 2021
Merged

Toolbar: Fixed styles being applies to nested elements#2980
RunDevelopment merged 1 commit intoPrismJS:masterfrom
RunDevelopment:issue2974

Conversation

@RunDevelopment
Copy link
Copy Markdown
Member

This fixes #2974.

The problem was that Toolbar's styles didn't expect toolbar items to have child elements. This is a problem because #2789 added a child element to Copy-to-Clipboard's <button>. So the styles got applied to both:

image

This fix is pretty simple. I just added a few >s to the selectors and that's it. All styles for items now only get applied to the direct children (typically there's only one) of the div.toolbar-item wrappers.

image

@github-actions
Copy link
Copy Markdown

github-actions bot commented Jul 2, 2021

No JS Changes

Generated by 🚫 dangerJS against 44d9359

@RunDevelopment RunDevelopment added this to the v1.24.1 milestone Jul 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Copy to clipboard button has double shadow

2 participants