Skip to content

Commit

Permalink
fix: primevue dialog button style (#162)
Browse files Browse the repository at this point in the history
* fix(primevue): remove important from dialog button

* fix(primevue): fix primevue dialog classname selection
  • Loading branch information
MCatherine1994 authored Mar 4, 2024
1 parent 9d1b25c commit fe9801f
Showing 1 changed file with 13 additions and 19 deletions.
32 changes: 13 additions & 19 deletions style-sheets/primevue-components-overrides.scss
Original file line number Diff line number Diff line change
Expand Up @@ -674,46 +674,40 @@ label {
}

/* ------------------------------------ dialog confirm button reject -------------------------- */
.#{variables.$primevue-prefix}-dialog
.#{variables.$primevue-prefix}-confirm-dialog-reject,
.#{variables.$primevue-prefix}-confirm-dialog-reject:enabled:hover,
.#{variables.$primevue-prefix}-confirm-dialog-reject:enabled:focus {
border: 0.0625rem solid
map.get(lightButton.$light-button-token-overrides, 'button-tertiary') !important;
}

.#{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;
}

.#{variables.$primevue-prefix}-button
.#{variables.$primevue-prefix}-confirm-dialog-reject,
.#{variables.$primevue-prefix}-button-text:enabled:hover {
.#{variables.$primevue-prefix}-dialog
.#{variables.$primevue-prefix}-confirm-dialog-reject:enabled:hover,
.#{variables.$primevue-prefix}-confirm-dialog-reject:enabled:focus {
background: map.get(
lightButton.$light-button-token-overrides,
'button-tertiary-hover'
) !important;
);
border-color: map.get(
lightButton.$light-button-token-overrides,
'button-tertiary-hover'
) !important;
color: map.get(lightTheme.$light-theme, 'text-on-color') !important;
);
color: map.get(lightTheme.$light-theme, 'text-on-color');
}

/* ------------------------------------ dialog confirm button accept -------------------------- */
.#{variables.$primevue-prefix}-dialog
.#{variables.$primevue-prefix}-confirm-dialog-accept {
color: colors.$white !important;
color: colors.$white;
border: 0.0625rem solid
map.get(
lightButton.$light-button-token-overrides,
'button-danger-primary'
) !important;
);
background-color: map.get(
lightButton.$light-button-token-overrides,
'button-danger-primary'
) !important;
);
}

.#{variables.$primevue-prefix}-dialog
Expand All @@ -722,11 +716,11 @@ label {
map.get(
lightButton.$light-button-token-overrides,
'button-danger-hover'
) !important;
);
background-color: map.get(
lightButton.$light-button-token-overrides,
'button-danger-hover'
) !important;
);
}

/* ------------------------------------ primevue toast --------------------------------- */
Expand Down

0 comments on commit fe9801f

Please sign in to comment.