Skip to content

Commit

Permalink
chore: update react-science (#2700)
Browse files Browse the repository at this point in the history
BREAKING-CHANGE: The NMRium component is no longer rendered inside an isolated
shadow DOM. I depends on a style reset such as the one done by TailwindCSS
(available in `react-science/styles/preflight.css`) to function correctly.
  • Loading branch information
targos committed Sep 29, 2023
1 parent 79185ba commit f918969
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 302 deletions.
1 change: 0 additions & 1 deletion .stylelintignore
@@ -1,6 +1,5 @@
build
coverage
src/demo/preflight.css
lib
node_modules
playwright-report
Expand Down
27 changes: 4 additions & 23 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -103,7 +103,7 @@
"react-ocl-nmr": "^3.0.1",
"react-plot": "^1.4.2",
"react-rnd": "^10.4.1",
"react-science": "^0.26.2",
"react-science": "^0.27.0",
"react-slider": "^2.0.6",
"react-table": "^7.8.0",
"react-transition-group": "^4.4.5",
Expand Down
276 changes: 0 additions & 276 deletions src/demo/preflight.css

This file was deleted.

2 changes: 1 addition & 1 deletion src/index.tsx
Expand Up @@ -7,7 +7,7 @@ import Test from './demo/views/Test';

// Reset styles so they do not affect development of the React component.
import 'modern-normalize/modern-normalize.css';
import './demo/preflight.css';
import 'react-science/styles/preflight.css';

import './demo/index.css';

Expand Down

0 comments on commit f918969

Please sign in to comment.