Skip to content

Commit

Permalink
Update demo pages
Browse files Browse the repository at this point in the history
  • Loading branch information
mertsincan committed Mar 17, 2021
1 parent bf16a7b commit 8d401ab
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 8 deletions.
1 change: 1 addition & 0 deletions src/assets/style/app/_core.scss
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ pre[class*="language-"] {
.p-toast.p-toast-top-right,
.p-toast.p-toast-top-left {
top: 100px;
z-index: 999999 !important;
}

.action-button {
Expand Down
2 changes: 1 addition & 1 deletion src/showcase/calendar/CalendarDemo.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export class CalendarDemo extends Component {
</div>
<div className="p-field p-col-12 p-md-4">
<label htmlFor="touchUI">TouchUI</label>
<Calendar id="touchUI" value={this.state.date13} onChange={(e) => this.setState({ date13: e.value })} touchUI />
<Calendar id="touchUI" value={this.state.date13} onChange={(e) => this.setState({ date13: e.value })} touchUI baseZIndex={1000} />
</div>
<div className="p-field p-col-12 p-md-4">
<label htmlFor="mask">Mask</label>
Expand Down
6 changes: 3 additions & 3 deletions src/showcase/calendar/CalendarDoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export class CalendarDemo extends Component {
</div>
<div className="p-field p-col-12 p-md-4">
<label htmlFor="touchUI">TouchUI</label>
<Calendar id="touchUI" value={this.state.date13} onChange={(e) => this.setState({ date13: e.value })} touchUI />
<Calendar id="touchUI" value={this.state.date13} onChange={(e) => this.setState({ date13: e.value })} touchUI baseZIndex={1000} />
</div>
<div className="p-field p-col-12 p-md-4">
<label htmlFor="mask">Mask</label>
Expand Down Expand Up @@ -296,7 +296,7 @@ const CalendarDemo = () => {
</div>
<div className="p-field p-col-12 p-md-4">
<label htmlFor="touchUI">TouchUI</label>
<Calendar id="touchUI" value={date13} onChange={(e) => setDate13(e.value)} touchUI />
<Calendar id="touchUI" value={date13} onChange={(e) => setDate13(e.value)} touchUI baseZIndex={1000} />
</div>
<div className="p-field p-col-12 p-md-4">
<label htmlFor="mask">Mask</label>
Expand Down Expand Up @@ -442,7 +442,7 @@ const CalendarDemo = () => {
</div>
<div className="p-field p-col-12 p-md-4">
<label htmlFor="touchUI">TouchUI</label>
<Calendar id="touchUI" value={date13} onChange={(e) => setDate13(e.value)} touchUI />
<Calendar id="touchUI" value={date13} onChange={(e) => setDate13(e.value)} touchUI baseZIndex={1000} />
</div>
<div className="p-field p-col-12 p-md-4">
<label htmlFor="mask">Mask</label>
Expand Down
5 changes: 4 additions & 1 deletion src/showcase/confirmdialog/ConfirmDialogDemo.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export class ConfirmDialogDemo extends Component {
message: 'Are you sure you want to proceed?',
header: 'Confirmation',
icon: 'pi pi-exclamation-triangle',
baseZIndex: 1000,
accept: this.accept,
reject: this.reject
});
Expand All @@ -45,6 +46,7 @@ export class ConfirmDialogDemo extends Component {
header: 'Delete Confirmation',
icon: 'pi pi-info-circle',
acceptClassName: 'p-button-danger',
baseZIndex: 1000,
accept: this.accept,
reject: this.reject
});
Expand All @@ -56,6 +58,7 @@ export class ConfirmDialogDemo extends Component {
header: 'Delete Confirmation',
icon: 'pi pi-info-circle',
position,
baseZIndex: 1000,
accept: this.accept,
reject: this.reject
});
Expand Down Expand Up @@ -99,7 +102,7 @@ export class ConfirmDialogDemo extends Component {

<h5>Using ConfirmDialog tag</h5>
<ConfirmDialog visible={this.state.visible} onHide={() => this.setState({ visible: false })} message="Are you sure you want to proceed?"
header="Confirmation" icon="pi pi-exclamation-triangle" accept={this.accept} reject={this.reject} />
header="Confirmation" icon="pi pi-exclamation-triangle" accept={this.accept} reject={this.reject} baseZIndex={1000}/>
<Button onClick={() => this.setState({ visible: true })} icon="pi pi-check" label="Confirm" />
</div>
</div>
Expand Down
15 changes: 12 additions & 3 deletions src/showcase/confirmdialog/ConfirmDialogDoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export class ConfirmDialogDemo extends Component {
message: 'Are you sure you want to proceed?',
header: 'Confirmation',
icon: 'pi pi-exclamation-triangle',
baseZIndex: 1000,
accept: this.accept,
reject: this.reject
});
Expand All @@ -58,6 +59,7 @@ export class ConfirmDialogDemo extends Component {
header: 'Delete Confirmation',
icon: 'pi pi-info-circle',
acceptClassName: 'p-button-danger',
baseZIndex: 1000,
accept: this.accept,
reject: this.reject
});
Expand All @@ -69,6 +71,7 @@ export class ConfirmDialogDemo extends Component {
header: 'Delete Confirmation',
icon: 'pi pi-info-circle',
position,
baseZIndex: 1000,
accept: this.accept,
reject: this.reject
});
Expand Down Expand Up @@ -104,7 +107,7 @@ export class ConfirmDialogDemo extends Component {
<h5>Using ConfirmDialog tag</h5>
<ConfirmDialog visible={this.state.visible} onHide={() => this.setState({ visible: false })} message="Are you sure you want to proceed?"
header="Confirmation" icon="pi pi-exclamation-triangle" accept={this.accept} reject={this.reject} />
header="Confirmation" icon="pi pi-exclamation-triangle" accept={this.accept} reject={this.reject} baseZIndex={1000}/>
<Button onClick={() => this.setState({ visible: true })} icon="pi pi-check" label="Confirm" />
</div>
</div>
Expand Down Expand Up @@ -138,6 +141,7 @@ const ConfirmDialogDemo = () => {
message: 'Are you sure you want to proceed?',
header: 'Confirmation',
icon: 'pi pi-exclamation-triangle',
baseZIndex: 1000,
accept,
reject
});
Expand All @@ -149,6 +153,7 @@ const ConfirmDialogDemo = () => {
header: 'Delete Confirmation',
icon: 'pi pi-info-circle',
acceptClassName: 'p-button-danger',
baseZIndex: 1000,
accept,
reject
});
Expand All @@ -160,6 +165,7 @@ const ConfirmDialogDemo = () => {
header: 'Delete Confirmation',
icon: 'pi pi-info-circle',
position,
baseZIndex: 1000,
accept,
reject
});
Expand Down Expand Up @@ -194,7 +200,7 @@ const ConfirmDialogDemo = () => {
<h5>Using ConfirmDialog tag</h5>
<ConfirmDialog visible={visible} onHide={() => setVisible(false)} message="Are you sure you want to proceed?"
header="Confirmation" icon="pi pi-exclamation-triangle" accept={accept} reject={reject} />
header="Confirmation" icon="pi pi-exclamation-triangle" accept={accept} reject={reject} baseZIndex={1000} />
<Button onClick={() => setVisible(true)} icon="pi pi-check" label="Confirm" />
</div>
</div>
Expand Down Expand Up @@ -227,6 +233,7 @@ const ConfirmDialogDemo = () => {
message: 'Are you sure you want to proceed?',
header: 'Confirmation',
icon: 'pi pi-exclamation-triangle',
baseZIndex: 1000,
accept,
reject
});
Expand All @@ -238,6 +245,7 @@ const ConfirmDialogDemo = () => {
header: 'Delete Confirmation',
icon: 'pi pi-info-circle',
acceptClassName: 'p-button-danger',
baseZIndex: 1000,
accept,
reject
});
Expand All @@ -249,6 +257,7 @@ const ConfirmDialogDemo = () => {
header: 'Delete Confirmation',
icon: 'pi pi-info-circle',
position,
baseZIndex: 1000,
accept,
reject
});
Expand Down Expand Up @@ -283,7 +292,7 @@ const ConfirmDialogDemo = () => {
<h5>Using ConfirmDialog tag</h5>
<ConfirmDialog visible={visible} onHide={() => setVisible(false)} message="Are you sure you want to proceed?"
header="Confirmation" icon="pi pi-exclamation-triangle" accept={accept} reject={reject} />
header="Confirmation" icon="pi pi-exclamation-triangle" accept={accept} reject={reject} baseZIndex={1000} />
<Button onClick={() => setVisible(true)} icon="pi pi-check" label="Confirm" />
</div>
</div>
Expand Down

0 comments on commit 8d401ab

Please sign in to comment.