React-grid-layout: Override .react-grid-item.react-grid-placeholder

Created on 3 Jan 2017  路  3Comments  路  Source: STRML/react-grid-layout

Hello,

Sorry for stupid question but how do I override .react-grid-item.react-grid-placeholder ?
I do

import 'react-grid-layout/css/styles.css';
import 'react-resizable/css/styles.css';

But haven't find a way to override it.

Thx,
F

stale

Most helpful comment

import 'react-grid-layout/css/styles.css';
import 'react-resizable/css/styles.css';
import './overridden-placeholder.css';

Content of overridden-placeholder.css:

.react-grid-item.react-grid-placeholder {
    background-color: lime;
  }

All 3 comments

import 'react-grid-layout/css/styles.css';
import 'react-resizable/css/styles.css';
import './overridden-placeholder.css';

Content of overridden-placeholder.css:

.react-grid-item.react-grid-placeholder {
    background-color: lime;
  }

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this issue will be closed in 7 days

@onsta @fsalamida im getting in the command-line "Module not found: Error: Can't resolve './overridden-placeholder.css' in ... (my file name and path)" can you help on this?

Was this page helpful?
0 / 5 - 0 ratings