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

Update error for missing koenig styles #458

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

royalfig
Copy link
Contributor

image

When recently helping a customer update to v5, Jon got hit with this error message, which he found confusing for him and the customer. In particular, the bit about affected files: styles. The difficulty here is that the error message is not about a specific file — but about missing files.

This commit updates the error message to be more explicit:
Missing styles or stylesheets

@royalfig royalfig requested a review from naz November 21, 2022 15:37
@@ -63,7 +63,7 @@ const checkKoenigCssClasses = function checkKoenigCssClasses(theme, options) {
theme.results.fail[ruleCode] = {};
theme.results.fail[ruleCode].failures = [
{
ref: 'styles'
ref: 'Missing styles or stylesheets'
Copy link
Member

Choose a reason for hiding this comment

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

This message appears under "Affected files" section, so would read like:

Affected files:
- Missing styles or stylesheets

I think "Missing stylesheets with required class styles" would be a more suitable reference here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Agreed! Updated reference text

@naz
Copy link
Member

naz commented Nov 23, 2022

@royalfig did you check how these changes appear in Ghost Admin?

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