React-modal: Border appears when modal opens. Only when using className instead of inlineCss

Created on 6 Jan 2019  路  3Comments  路  Source: reactjs/react-modal

Summary:

Hello, I ran into a problem using react-modal. Whenever I add a className, the weird border appears when modal open. Doesn't appear if I use inline, but I need responsiveness, that inline doesn't provide.
It disappears when you try to inspect or click on inspect panel.
Anyone else ran into this issue?

Steps to reproduce:

  1. Using CSS classes for styling (Official demo)

Expected behavior:

That weird border, shouldn't be there.

Link to example of issue:

https://codepen.io/claydiffrient/pen/KNjVrG

Additional notes:

Most helpful comment

:focus { outline: none; } removes it.

All 3 comments

@shmekla
Are you talking about the border around the modal itself? It might be because the whole modal is in focus.

:focus { outline: none; } removes it.

Close this, is solved.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tairy-potter picture tairy-potter  路  3Comments

yaoyao1024 picture yaoyao1024  路  3Comments

CXJoyce picture CXJoyce  路  4Comments

gavmck picture gavmck  路  3Comments

davidmfoley picture davidmfoley  路  3Comments