Skip to content

Conversation

@jamesros161
Copy link
Collaborator

@jamesros161 jamesros161 commented Oct 17, 2023

ISSUE: Resolves #527

PROJECT: #14

Color Neutral doesn't get removed when a new color is selected

Test Files

post-and-page-builder-1.25.1-issue-527.zip

NOTES TO TESTER

Please leave comments regarding issues found in testing directly on the issue linked above, not the Pull Request. This helps ease the process of reviewing the testing of multiple PRs in a given project from the project view.

Please remember to move this item from 'Needs Review' to either 'In Progress' or 'Awaiting Release' depending on the results of your testing

Testing Instructions

  1. Install the test zip files linked above.
  2. Change the font color of an element to the neutral theme color ( last color in the palette )
  3. Change the font color of that same element to some other theme color ( 1, 2, 3, etc )
  4. Inspect the element and ensure that the 'color-neutral-color' class was removed from the element and the color of the text accurately reflects the chosen palette color.
  5. Repeat steps 2 - 4 but instead of font color, change the outline color, and the border color.

transparentColors: [ 'rgba(0, 0, 0, 0)', 'transparent' ],

colorClasses: [ 'color1-color', 'color2-color', 'color3-color', 'color4-color', 'color5-color' ],
colorClasses: [ 'color1-color', 'color2-color', 'color3-color', 'color4-color', 'color5-color', 'color-neutral-color' ],

Choose a reason for hiding this comment

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

Any reason this is on a single line when the others are separated? Not a big deal, I am assuming is just based on the amount of values in the array.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

it's based on the amount of space the line takes up. Since they all fit without making the line too long, I left it as one line

@jamesros161 jamesros161 merged commit 482643d into master Oct 19, 2023
@jamesros161 jamesros161 deleted the issue-527 branch October 19, 2023 18:19
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.

Color Neutral doesn't get removed when a new color is selected

3 participants