Skip to content

Commit 6aac746

Browse files
committed
Sass exports not working in streambed
1 parent 90efd74 commit 6aac746

File tree

4 files changed

+4
-11
lines changed

4 files changed

+4
-11
lines changed

config/ColorscalepickerStub.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,7 @@
8787
"<rootDir>/src/"
8888
],
8989
"moduleNameMapper": {
90-
"^.+\\.css$": "<rootDir>/config/CSSStub.js",
91-
"^.+\\_colorscalepicker.scss$": "<rootDir>/config/ColorscalepickerStub.js"
90+
"^.+\\.css$": "<rootDir>/config/CSSStub.js"
9291
}
9392
},
9493
"keywords": [
@@ -127,4 +126,4 @@
127126
"watch": "babel src --watch --out-dir lib --source-maps | node-sass -w src/styles/main.scss lib/react-chart-editor.css",
128127
"watch-test": "jest --watch"
129128
}
130-
}
129+
}

src/components/widgets/ColorscalePicker.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import Dropdown from './Dropdown';
33
import Info from '../fields/Info';
44
import PropTypes from 'prop-types';
55
import React, {Component} from 'react';
6-
import colorscalepickerStyles from '../../styles/components/widgets/_colorscalepicker.scss';
7-
const colorscalepickerContainerWidth = parseInt(colorscalepickerStyles.colorscalepickerWidth, 10);
6+
// CAREFUL: needs to be the same value as $colorscalepicker-width in _colorscalepicker.scss
7+
const colorscalepickerContainerWidth = 240;
88

99
class Scale extends Component {
1010
constructor(props) {

src/styles/components/widgets/_colorscalepicker.scss

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
$colorscalepicker-width: 240px;
33
$colorscale-clickable-part-width: 180px;
44
$text-padding: 5px;
5-
:export {
6-
colorscalepickerWidth: $colorscalepicker-width;
7-
}
85

96
// We're making our own custom colorscale picker to better adapt to RCE layout
107
// so we're not displaying some parts of the original colorscalepicker (categody dropdown, description)

0 commit comments

Comments
 (0)