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

fixes colorblind theme name and adds tests to prevent it happening again #4525

Merged
merged 6 commits into from
Mar 9, 2022

Conversation

dimitropoulos
Copy link
Contributor

@dimitropoulos dimitropoulos commented Feb 25, 2022

While pairing on something unrelated with @gatzjames, we noticed that the colorblind theme has a malformed CSS class name:

Whitespace in CSS classes are not valid. Ultimately, though, the problem is as much one of communication (to plugin authors) as anything else. So this PR implements a console error (rather than throwing) that theme plugin developers would see when developing.

Screenshot_20220225_103459

To make sure this logic stays consistent, there are tests for this check. Then, I fix the error for the colorblind theme by modifying its name. The name selected doesn't match the order pattern we use for all other themes (i.e. it used dark-colorblind instead of colorblind-dark like for all other themes) so since I had to change the name I made it consistent with the rest.

changelog(Fixes): The colorblind theme had a malformed identifier. If you were using this theme, you'll need to re-select in the theme switcher.

@dimitropoulos dimitropoulos enabled auto-merge (squash) March 8, 2022 15:03
@dimitropoulos dimitropoulos merged commit 4c16305 into Kong:develop Mar 9, 2022
@dimitropoulos dimitropoulos deleted the fix/colorblind-name branch March 9, 2022 10:00
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.

2 participants