mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-11 00:06:25 +08:00
11 lines
334 B
TypeScript
11 lines
334 B
TypeScript
import { document } from 'global';
|
|
|
|
export default function addCssWarning() {
|
|
const warning = document.createElement('h1');
|
|
warning.textContent = 'CSS rules are not configured as needed';
|
|
warning.className = 'css-rules-warning';
|
|
warning.style.color = 'red';
|
|
|
|
document.body.insertBefore(warning, document.body.firstChild);
|
|
}
|