1

HI I have a problem with modal, when I open another model from this one and close it first modal has blurry text.

Before opening second modal

enter image description here

After closing second modal

Problem modal

My css:

.label {
    background-color: lightgrey;
    font-weight: bold;
}

td {
    padding: 10px;
    font-size: 14px;
    border: 1px solid black;
}

And page code:

<ng-container *ngIf="event">
    <h3>Просмотр события от {{ event.systemDate | dateTime }}</h3>
    <table>
        <tr>
            <td class="label">
                Дата и время события по часовому поясу организации
            </td>
            <td>
                {{ event.systemDate | dateTime }}
            </td>
            <td class="label">
                Дата и время события по часовому поясу Системы
            </td>
            <td>
                {{ event.systemDate | dateTime }}
            </td>
            <td class="label">
                Кем инициировано
            </td>
            <td>
                {{ event.initiatedBy | initiatorType }}
            </td>
        </tr>
    </table>
</ng-container>
Sam Kilanoff
  • 188
  • 2
  • 15

2 Answers2

1

I think this is a problem to do with composite layers.

If I'm correct, adding the following code to your table and modal should solve it. If that doesn't work, try adding it to the body too. Just hack around!

-webkit-backface-visibility: hidden;
-webkit-transform: translateZ(0) scale(1.0, 1.0);

See this answer: https://stackoverflow.com/a/19211952/3412847

gilbert-v
  • 1,263
  • 1
  • 11
  • 23
0

The problem was caused by PrimeNG generated style: translateX(-50%) translateY(-50%) scale(1).

enter image description here

I add this to styles.scss:

.ui-dialog.ui-dynamicdialog {
    margin-top: -20%;
    margin-left: -40%;
    transform: translateZ(0) scale(1.0, 1.0); !important;
}

And my problem was fixed enter image description here

Sam Kilanoff
  • 188
  • 2
  • 15