Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Buttons & social links often show the wrong text/icon color #235

Closed
kjellr opened this issue Jun 28, 2021 · 3 comments
Closed

Buttons & social links often show the wrong text/icon color #235

kjellr opened this issue Jun 28, 2021 · 3 comments
Labels
[Component] Pattern Creator Anything related to the pattern front end editor or preview [Component] Theme The frontend of the pattern directory, pattern lists UI [Type] Bug Something isn't working

Comments

@kjellr
Copy link
Collaborator

kjellr commented Jun 28, 2021

Buttons & social links often show the wrong text/icon color in the pattern preview.

Examples:

https://wordpress.org/patterns/pattern/introduction-with-image-on-the-left/
https://wordpress.org/patterns/pattern/contact-and-social-links/

Editor Frontend Preview
Screen Shot 2021-06-21 at 8 17 17 AM Screen Shot 2021-06-21 at 8 17 07 AM
Editor Frontend Preview
Screen Shot 2021-06-21 at 8 17 35 AM Screen Shot 2021-06-21 at 8 16 11 AM
@kjellr kjellr added [Type] Bug Something isn't working [Component] Pattern Creator Anything related to the pattern front end editor or preview labels Jun 28, 2021
@ryelle ryelle added the [Component] Theme The frontend of the pattern directory, pattern lists UI label Jun 28, 2021
@ryelle ryelle added this to the Initial Launch milestone Jul 1, 2021
@coreymckrill
Copy link
Contributor

From #266 (comment)

I'm pretty sure that's a gutenberg bug with custom link colors, but haven't tracked it down yet.

@ryelle is this the issue you were thinking of?

@ryelle
Copy link
Contributor

ryelle commented Jul 14, 2021

I don't think that's exactly it, I'll see if I can replicate outside of the preview iframe. The issue I see here is this important style is overriding the links in the icon, even though the icons have colors set locally. The output HTML looks like this:

<li style="color: #FFFFFF; background-color: #000000; " class="wp-social-link wp-social-link-twitter wp-block-social-link">
  <a href="https://twitter.com" aria-label="Twitter: https://twitter.com" class="wp-block-social-link-anchor"> <...svg...></a>
</li>
...
<style>.wp-elements-60ef5bd1316b8 a{color: #000000 !important;}</style>

@ryelle
Copy link
Contributor

ryelle commented Jul 14, 2021

I was able to reproduce it outside of the pattern directory, so I've made an issue in Gutenberg for it: WordPress/gutenberg#33437.

Closing this issue for now, although once it's fixed in GB we might need to update these patterns.

@ryelle ryelle closed this as completed Jul 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Component] Pattern Creator Anything related to the pattern front end editor or preview [Component] Theme The frontend of the pattern directory, pattern lists UI [Type] Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants