Skip to content

Conversation

@johann-sonntagbauer
Copy link
Contributor

Error overlay now uses normal flow and inserts an additional line for error information. So no overlay of text and info caret occur any longer.

fixes #117

Error overlay now uses normal flow and inserts an additional line for error information. So no overlay of text and info caret occur any longer.
@CompuIves
Copy link
Member

Wow that was quick! Thanks a lot!

Could you add yourself to the contributors? You can do this by running

npm run add

}
}

function absolutifyCaret(component: Node) {
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 we could remove this whole function, right?

Copy link
Member

Choose a reason for hiding this comment

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

Oh wait, now that I see it, maybe we could delete this whole file? Or does this contain functionality to position the caret horizontally?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

you are right, no additional logic remains. Removed the file and cleaned up. Thx for the detailed review.

@CompuIves
Copy link
Member

Just tested it, works great! The only standing thing is that I think we could delete src/sandbox/react-error-overlay/utils/dom/absolutifyCaret.js altogether.

@CompuIves
Copy link
Member

Great, thanks for the contribution!

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.

Error Overlay styling

2 participants