Skip to content

Commit

Permalink
💄 [open-formulieren/open-forms#2177] Leaflet styling
Browse files Browse the repository at this point in the history
  • Loading branch information
robinmolen committed Jan 21, 2025
1 parent f604fb2 commit 3edd202
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/Map/index.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import * as Leaflet from 'leaflet';
import 'leaflet-draw/dist/leaflet.draw.css';
import {GeoSearchControl} from 'leaflet-geosearch';
import 'leaflet/dist/leaflet.css';
import PropTypes from 'prop-types';
import {useContext, useEffect, useRef} from 'react';
import {defineMessages, useIntl} from 'react-intl';
Expand All @@ -20,6 +18,7 @@ import {
import {getBEMClassName} from 'utils';

import NearestAddress from './NearestAddress';
import './map.scss';
import OpenFormsProvider from './provider';

const searchControlMessages = defineMessages({
Expand Down
16 changes: 16 additions & 0 deletions src/components/Map/map.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
@import 'leaflet/dist/leaflet.css';
@import 'leaflet-draw/dist/leaflet.draw.css';

.leaflet-container .leaflet-draw-actions {
// Make sure all action bars are the same height
a,
&.leaflet-draw-actions-top a,
&.leaflet-draw-actions-bottom a {
height: 30px;
line-height: 30px;
}

a {
color: #fff;
}
}

0 comments on commit 3edd202

Please sign in to comment.