Skip to content

Commit 9272d15

Browse files
authored
Fix geosolutions-it#10954 Review button styles and remove transitions (geosolutions-it#11961)
1 parent 7060dce commit 9272d15

28 files changed

Lines changed: 55 additions & 209 deletions

File tree

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@
8989
"prettier": "3.5.1",
9090
"process": "0.11.10",
9191
"raw-loader": "0.5.1",
92-
"react-transition-group": "1.1.3",
9392
"readline-promise": "1.0.4",
9493
"redux-devtools": "3.4.0",
9594
"redux-devtools-dock-monitor": "1.1.2",
@@ -194,7 +193,6 @@
194193
"qrcode.react": "0.9.3",
195194
"query-string": "6.9.0",
196195
"react": "16.14.0",
197-
"react-addons-css-transition-group": "15.6.2",
198196
"react-bootstrap": "0.31.0",
199197
"react-checkbox-tree": "1.5.1",
200198
"react-codemirror2": "4.0.0",

web/client/components/TOC/fragments/settings/FeatureInfoEditor.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ const FeatureInfoEditor = ({
7171
<Portal>
7272
<ResizableModal
7373
modalClassName="ms-feature-info-editor"
74-
fade
7574
show={showEditor}
7675
title={<Message msgId="layerProperties.editCustomFormat"/>}
7776
size="lg"

web/client/components/background/BackgroundDialog.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,6 @@ export default class BackgroundDialog extends React.Component {
284284
fitContent
285285
title={<Message msgId={this.props.editing ? 'backgroundDialog.editTitle' : 'backgroundDialog.addTitle'}/>}
286286
show
287-
fade
288287
clickOutEnabled={false}
289288
bodyClassName="ms-flex modal-properties-container background-dialog"
290289
loading={this.props.loading}

web/client/components/data/identify/GeocodeViewer.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ export default ({latlng, enableRevGeocode, hideRevGeocode = () => {}, showModalR
2828
return enableRevGeocode && latlng ? (
2929
<Portal>
3030
<ResizableModal
31-
fade
3231
title={<span><Glyphicon glyph="map-marker"/>&nbsp;<Message msgId="identifyRevGeocodeModalTitle" /></span>}
3332
size="xs"
3433
show={showModalReverse}

web/client/components/data/identify/IdentifyContainer.jsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,6 @@ export default props => {
147147
<Toolbar
148148
btnDefaultProps={{ bsStyle: 'primary', className: 'square-button' }}
149149
buttons={getFeatureButtons(props)}
150-
transitionProps={null}
151150
/>
152151
</div>
153152
</div>,
@@ -172,17 +171,12 @@ export default props => {
172171
<Toolbar
173172
btnDefaultProps={{ bsStyle: 'primary', className: 'square-button' }}
174173
buttons={toolButtons}
175-
transitionProps={null
176-
/* transitions was causing a bad rendering of toolbar present in the identify panel
177-
* for this reason they ahve been disabled
178-
*/
179-
}/>
174+
/>
180175
</div>)
181176
].filter(headRow => headRow)}
182177
siblings={
183178
<Portal>
184179
<ResizableModal
185-
fade
186180
title={<Message msgId="warning"/>}
187181
size="xs"
188182
show={warning}

web/client/components/data/identify/coordinates/__tests__/Editor-test.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ describe('Identify Coordinate Editor component', () => {
2828
};
2929
const spyonChange = expect.spyOn(actions, 'onSubmit');
3030
ReactDOM.render(<Editor onSubmit={actions.onSubmit} />, document.getElementById("container"));
31-
const button = document.querySelector('span > button');
31+
const button = document.querySelector('.tools > button.square-button');
3232
expect(button.classList.contains('disabled')).toBe(true);
3333
const latLonFields = document.querySelectorAll('input');
3434
ReactTestUtils.Simulate.focus(latLonFields[0]);

web/client/components/geostory/builder/Builder.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ class Builder extends React.Component {
101101
className: "square-button",
102102
bsStyle: "primary"
103103
}}
104-
transitionProps={false}
105104
buttons={[
106105
{
107106
visible: !isSettingsEnabled,

web/client/components/geostory/common/MapEditor.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ const MapEditor = ({
8484
</Col>
8585
</Row>
8686
<Toolbar
87-
transitionProps={false}
8887
btnGroupProps={{
8988
className: "ms-geostory-map-editor-toolbar"
9089
}}

web/client/components/geostory/contents/carousel/__tests__/Carousel-test.jsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,15 @@ describe('Carousel component', () => {
6464
// Carousel toolbar
6565
const [toolbar] = el.getElementsByClassName('ms-content-toolbar');
6666
expect(toolbar).toExist();
67-
const buttons = toolbar.querySelectorAll('.btn-group span button');
67+
const buttons = toolbar.querySelectorAll('.btn-group button');
6868
expect(buttons.length).toBe(2);
6969
expect(buttons[0].querySelector('.glyphicon-plus')).toExist();
7070
expect(buttons[1].querySelector('.glyphicon-trash')).toExist();
7171

7272
// Carousel item toolbar
7373
const itemToolbar = container.querySelector('.ms-geo-carousel-item-wrapper .ms-content-toolbar');
7474
expect(itemToolbar).toBeTruthy();
75-
const itemButtons = itemToolbar.querySelectorAll('.btn-group span button');
75+
const itemButtons = itemToolbar.querySelectorAll('.btn-group button');
7676
expect(itemButtons.length).toBe(3);
7777
expect(itemButtons[0].querySelector('.glyphicon-pencil')).toExist();
7878
expect(itemButtons[1].querySelector('.glyphicon-trash')).toExist();
@@ -94,15 +94,15 @@ describe('Carousel component', () => {
9494
// Carousel toolbar
9595
const [toolbar] = el.getElementsByClassName('ms-content-toolbar');
9696
expect(toolbar).toExist();
97-
const buttons = toolbar.querySelectorAll('.btn-group span button');
97+
const buttons = toolbar.querySelectorAll('.btn-group button');
9898
expect(buttons.length).toBe(2);
9999
expect(buttons[0].classList.contains('disabled')).toBeTruthy();
100100
expect(buttons[1].classList.contains('disabled')).toBeFalsy();
101101

102102
// Carousel item toolbar
103103
const itemToolbar = container.querySelector('.ms-geo-carousel-item-wrapper .ms-content-toolbar');
104104
expect(itemToolbar).toBeTruthy();
105-
const itemButtons = itemToolbar.querySelectorAll('.btn-group span button');
105+
const itemButtons = itemToolbar.querySelectorAll('.btn-group button');
106106
expect(itemButtons.length).toBe(3);
107107
expect(itemButtons[0].classList.contains('disabled')).toBeFalsy();
108108
expect(itemButtons[1].classList.contains('disabled')).toBeTruthy();
@@ -177,7 +177,7 @@ describe('Carousel component', () => {
177177
// Carousel toolbar
178178
const [toolbar] = el.getElementsByClassName('ms-content-toolbar');
179179
expect(toolbar).toExist();
180-
const buttons = toolbar.querySelectorAll('.btn-group span button');
180+
const buttons = toolbar.querySelectorAll('.btn-group button');
181181
expect(buttons.length).toBe(2);
182182
const [addButton] = buttons;
183183
expect(addButton.querySelector('.glyphicon-plus')).toExist();
@@ -202,7 +202,7 @@ describe('Carousel component', () => {
202202
// Carousel toolbar
203203
const [toolbar] = el.getElementsByClassName('ms-content-toolbar');
204204
expect(toolbar).toExist();
205-
const buttons = toolbar.querySelectorAll('.btn-group span button');
205+
const buttons = toolbar.querySelectorAll('.btn-group button');
206206
expect(buttons.length).toBe(2);
207207
const removeButton = buttons[1];
208208
expect(removeButton.querySelector('.glyphicon-trash')).toExist();
@@ -233,7 +233,7 @@ describe('Carousel component', () => {
233233
// Carousel item toolbar
234234
const itemToolbar = container.querySelectorAll('.ms-geo-carousel-item-wrapper .ms-content-toolbar');
235235
expect(itemToolbar.length).toBeTruthy();
236-
const itemButtons = itemToolbar[1].querySelectorAll('.btn-group span button');
236+
const itemButtons = itemToolbar[1].querySelectorAll('.btn-group button');
237237
expect(itemButtons.length).toBe(3);
238238
const removeButton = itemButtons[1];
239239
TestUtils.Simulate.click(removeButton);
@@ -263,7 +263,7 @@ describe('Carousel component', () => {
263263
// Carousel item toolbar
264264
const itemToolbar = container.querySelector('.ms-geo-carousel-item-wrapper .ms-content-toolbar');
265265
expect(itemToolbar).toBeTruthy();
266-
const itemButtons = itemToolbar.querySelectorAll('.btn-group span button');
266+
const itemButtons = itemToolbar.querySelectorAll('.btn-group button');
267267
expect(itemButtons.length).toBe(3);
268268
const markerButton = itemButtons[2];
269269
TestUtils.Simulate.click(markerButton);

web/client/components/geostory/contents/carousel/carouselItem/ItemThumbnail.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ export default (props) => {
3939
fitContent
4040
title={<Message msgId={props.editing ? 'geostory.carouselEditTitle' : 'geostory.carouselAddTitle'}/>}
4141
show
42-
fade
4342
clickOutEnabled={false}
4443
bodyClassName="ms-flex modal-properties-container background-dialog"
4544
onClose={props.onClose}

0 commit comments

Comments
 (0)