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

WPEX-1512 set default color for social profiles with masked style and no social colors set #2046

Merged
merged 2 commits into from Oct 7, 2021

Conversation

snovosel
Copy link
Contributor

Description

With the masked style and no social colors selected for the Social Profiles block, the icons were no longer visible. This PR sets a default color to black in the event that no color has been set.

Screenshots

Before:
https://user-images.githubusercontent.com/18115694/135293063-04edba73-35cf-4d3a-ad8b-6d8611819e49.mov

After:
https://user-images.githubusercontent.com/18115694/135293636-1ee915de-cd9c-4375-8f71-910c3025e3a7.mov

Types of changes

Bug fix

How has this been tested?

visually

Checklist:

  • My code is tested
  • My code follows accessibility standards
  • My code has proper inline documentation
  • I've included any necessary tests
  • I've included developer documentation
  • I've added proper labels to this pull request

@cypress
Copy link

cypress bot commented Sep 29, 2021



Test summary

16 0 0 0


Run details

Project CoBlocks
Status Passed
Commit 9664eaa
Started Sep 29, 2021 3:31 PM
Ended Sep 29, 2021 3:34 PM
Duration 02:50 💡
OS Linux Debian - 10.6
Browser Multiple

View run in Cypress Dashboard ➡️


This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

Copy link
Member

@AnthonyLedesma AnthonyLedesma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not able to replicate the reported issue. On my end, existing CSS styles handle this fallback color just fine.

&:not(.has-colors) .wp-block-button__link:not(.has-text-color) {
color: #31373c;
}

image

@snovosel
Copy link
Contributor Author

snovosel commented Oct 5, 2021

@AnthonyLedesma it seems that this bug is not reproducible with the Go theme active. I was able to reproduce this using Twenty Twenty-One theme

Copy link
Member

@AnthonyLedesma AnthonyLedesma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@snovosel snovosel merged commit 5ac87d8 into master Oct 7, 2021
@snovosel snovosel deleted the WPEX-1512 branch October 7, 2021 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants