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

Link color doesn't work for author role #25151

Closed
oandregal opened this issue Sep 8, 2020 · 4 comments
Closed

Link color doesn't work for author role #25151

oandregal opened this issue Sep 8, 2020 · 4 comments
Assignees
Labels
[Type] Bug An existing feature does not function as intended

Comments

@oandregal
Copy link
Member

How to test:

  • Install the Seedlet theme, or any other theme that has support for the link color feature.
  • As an author role, go to the post editor and add a paragraph with a link.
  • Change the link color via the block settings.
  • Publish post.

The expected result is that the paragraph, in the front-end, has the class has-link-color and also has inlined the style for the color such as style="--wp--style--color--link:<some-color-here>". What happens instead is that the CSS custom property isn't present.

@oandregal
Copy link
Member Author

This probably needs checking against the unfiltered_html capability as different setups may have different role-capabilities mappings.

@oandregal oandregal added the [Type] Bug An existing feature does not function as intended label Sep 8, 2020
@mcsf
Copy link
Contributor

mcsf commented Sep 8, 2020

Whatever the fix, I recommend adding an E2E test, however small. That way it's guaranteed to be tested by CI against both admin and author roles.

@oandregal
Copy link
Member Author

oandregal commented May 5, 2021

Related #31488 (will be fixed if/when that approach lands)

@oandregal
Copy link
Member Author

This has been fixed by landing #31524

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants