mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2024-12-31 00:20:32 +01:00
Changed close button from <a> to <button>
This commit is contained in:
parent
35353d75f5
commit
f9f5e8f925
2 changed files with 6 additions and 3 deletions
|
@ -32,12 +32,12 @@ class Modal extends React.Component {
|
||||||
<header className="maputnik-modal-header">
|
<header className="maputnik-modal-header">
|
||||||
<h1 className="maputnik-modal-header-title">{this.props.title}</h1>
|
<h1 className="maputnik-modal-header-title">{this.props.title}</h1>
|
||||||
<span className="maputnik-modal-header-space"></span>
|
<span className="maputnik-modal-header-space"></span>
|
||||||
<a className="maputnik-modal-header-toggle"
|
<button className="maputnik-modal-header-toggle"
|
||||||
onClick={() => this.props.onOpenToggle(false)}
|
onClick={() => this.props.onOpenToggle(false)}
|
||||||
data-wd-key={this.props["data-wd-key"]+".close-modal"}
|
data-wd-key={this.props["data-wd-key"]+".close-modal"}
|
||||||
>
|
>
|
||||||
<CloseIcon />
|
<CloseIcon />
|
||||||
</a>
|
</button>
|
||||||
</header>
|
</header>
|
||||||
<div className="maputnik-modal-scroller">
|
<div className="maputnik-modal-scroller">
|
||||||
<div className="maputnik-modal-content">{this.props.children}</div>
|
<div className="maputnik-modal-content">{this.props.children}</div>
|
||||||
|
|
|
@ -43,7 +43,10 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.maputnik-modal-header-toggle {
|
.maputnik-modal-header-toggle {
|
||||||
cursor: pointer;
|
border: none;
|
||||||
|
background: initial;
|
||||||
|
color: white;
|
||||||
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.maputnik-modal-scroller {
|
.maputnik-modal-scroller {
|
||||||
|
|
Loading…
Reference in a new issue