Skip to content

Commit ce24dd4

Browse files
author
prconcepcion
committed
added classname and refactored styling
1 parent 6acecf0 commit ce24dd4

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

src/block/map/editor.scss

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,18 +38,15 @@
3838
}
3939

4040
.stk-control__location-control {
41-
display: flex;
4241

43-
.stk-control__reset-button {
44-
position: static;
45-
margin-top: 2px;
46-
margin-left: 4px;
47-
margin-right: 2px;
42+
.components-base-control {
43+
width: 100%;
4844
}
4945

50-
.components-text-control__input {
51-
width: 224px;
46+
.stk-control__reset-button {
47+
top: 28px;
5248
}
49+
5350
}
5451

5552
.stk-block-map__api-key-notice {

src/block/map/location-control.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ const LocationControl = props => {
6464

6565
return (
6666
<GutBaseControl
67+
className="stk-control"
6768
label={ __( 'Location', i18n ) }
6869
help={ __( 'Type in a pair of latitude longitude coordinates. You can also type in the name of the location if your API Key has Geocoding API and Places API enabled.', i18n ) }
6970
>

0 commit comments

Comments
 (0)