Skip to content

Commit

Permalink
Fixed #2044 - Improve header element on Dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
mertsincan committed May 20, 2021
1 parent 6c0ac70 commit f4b4646
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/components/dialog/Dialog.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
.p-dialog-header {
display: flex;
align-items: center;
justify-content: space-between;
flex-shrink: 0;
}

Expand All @@ -47,6 +46,7 @@
.p-dialog .p-dialog-header-icons {
display: flex;
align-items: center;
flex-shrink: 0;
}

.p-dialog .p-dialog-header-icon {
Expand All @@ -57,6 +57,10 @@
position: relative;
}

.p-dialog .p-dialog-title {
flex-grow: 1;
}

/* Fluid */
.p-fluid .p-dialog-footer .p-button {
width: auto;
Expand Down
2 changes: 1 addition & 1 deletion src/components/dialog/Dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ export class Dialog extends Component {

return (
<div ref={el => this.headerEl = el} className="p-dialog-header" onMouseDown={this.onDragStart}>
<span id={this.state.id + '_header'} className="p-dialog-title">{header}</span>
<div id={this.state.id + '_header'} className="p-dialog-title">{header}</div>
<div className="p-dialog-header-icons">
{icons}
{maximizeIcon}
Expand Down

0 comments on commit f4b4646

Please sign in to comment.