Skip to content

Commit

Permalink
fix(primevue): design on confirm pop up (#163)
Browse files Browse the repository at this point in the history
* fixed design on confirm pop up

* limit dialog width
  • Loading branch information
J0taFerreira authored Mar 26, 2024
1 parent f677341 commit 7ae364b
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions style-sheets/primevue-components-overrides.scss
Original file line number Diff line number Diff line change
Expand Up @@ -592,6 +592,7 @@ label {
border-radius: 0.5rem;
box-shadow: 0 0.125rem 0.375rem 0 rgba(0, 0, 0, 0.3);
border: none;
max-width: 50%;
}

.#{variables.$primevue-prefix}-dialog
Expand All @@ -600,17 +601,20 @@ label {
border-top-left-radius: 0.5rem;

.#{variables.$primevue-prefix}-dialog-title {
@extend %heading-03;
@extend %label-01;
}
}

.#{variables.$primevue-prefix}-dialog-content {
@extend %body-compact-01;
padding: 0 1rem;
}

.#{variables.$primevue-prefix}-dialog-content p:last-child {
@extend %heading-03;
padding-bottom: 3rem;
margin: 0;
width: 85%;
}
.#{variables.$primevue-prefix}-dialog
.#{variables.$primevue-prefix}-dialog-content:last-of-type {
Expand All @@ -620,17 +624,18 @@ label {
}

.#{variables.$primevue-prefix}-dialog-footer {
display: flex;
border-top: none !important;
padding-bottom: 4rem !important;
padding-bottom: 1rem;
padding-top: 0;
border-bottom-right-radius: 0.5rem;
border-bottom-left-radius: 0.5rem;
}

.#{variables.$primevue-prefix}-dialog
.#{variables.$primevue-prefix}-dialog-footer
button {
margin: 0 0.5rem 0 0;
width: auto;
.#{variables.$primevue-prefix}-button {
flex-basis: 100%;
padding: 0.75rem;
}

/* ------------------------------------ dialog confirm header -------------------------- */
Expand Down Expand Up @@ -667,18 +672,13 @@ label {
width: 0.6rem;
}

.#{variables.$primevue-prefix}-dialog
.#{variables.$primevue-prefix}-confirm-dialog-reject,
.#{variables.$primevue-prefix}-confirm-dialog-accept {
padding: 0.75rem 5.1875rem;
}

/* ------------------------------------ dialog confirm button reject -------------------------- */
.#{variables.$primevue-prefix}-dialog
.#{variables.$primevue-prefix}-confirm-dialog-reject {
border: 0.0625rem solid
map.get(lightButton.$light-button-token-overrides, 'button-tertiary');
background: transparent;
margin-right: 0.5rem;
}

.#{variables.$primevue-prefix}-dialog
Expand Down

0 comments on commit 7ae364b

Please sign in to comment.