mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2024-12-30 23:50: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">
|
||||
<h1 className="maputnik-modal-header-title">{this.props.title}</h1>
|
||||
<span className="maputnik-modal-header-space"></span>
|
||||
<a className="maputnik-modal-header-toggle"
|
||||
<button className="maputnik-modal-header-toggle"
|
||||
onClick={() => this.props.onOpenToggle(false)}
|
||||
data-wd-key={this.props["data-wd-key"]+".close-modal"}
|
||||
>
|
||||
<CloseIcon />
|
||||
</a>
|
||||
</button>
|
||||
</header>
|
||||
<div className="maputnik-modal-scroller">
|
||||
<div className="maputnik-modal-content">{this.props.children}</div>
|
||||
|
|
|
@ -43,7 +43,10 @@
|
|||
}
|
||||
|
||||
.maputnik-modal-header-toggle {
|
||||
cursor: pointer;
|
||||
border: none;
|
||||
background: initial;
|
||||
color: white;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.maputnik-modal-scroller {
|
||||
|
|
Loading…
Reference in a new issue