Turn dialog close button into a <button>
This is semantically more correct.
This commit is contained in:
parent
1ea3180f5b
commit
0d36e8a3fc
2 changed files with 14 additions and 6 deletions
|
@ -50,8 +50,8 @@ export default class Dialog extends Component {
|
|||
<div class="dialog" onClick=${this.handleBackdropClick}>
|
||||
<div class="dialog-body" ref=${this.body}>
|
||||
<div class="dialog-header">
|
||||
<a href="#" class="dialog-close" onClick=${this.handleCloseClick}>×</span>
|
||||
<h2>${this.props.title}</h2>
|
||||
<button class="dialog-close" onClick=${this.handleCloseClick}>×</button>
|
||||
</div>
|
||||
${this.props.children}
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue