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

Add a way to change the color for MISSING/ERROR nodes on the playground #3042

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mingodad
Copy link

No description provided.

Comment on lines +176 to +178
a.a-missing, a.a-error {
color : blue;
}
Copy link
Member

Choose a reason for hiding this comment

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

I think red would be better for errors

Comment on lines +149 to +157
let displayClass = 'plain';
if (cursor.nodeIsMissing) {
displayName = `MISSING ${cursor.nodeType}`
displayClass += ' a-missing';
} else if (cursor.nodeIsNamed) {
displayName = cursor.nodeType;
if (displayName == 'ERROR') {
displayClass += ' a-error';
}
Copy link
Member

Choose a reason for hiding this comment

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

keep formatting consistent please

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.

Playground color for MISSING/ERROR
2 participants