Skip to content

Commit

Permalink
added comment for negative left margin
Browse files Browse the repository at this point in the history
  • Loading branch information
sadiqkhoja committed Aug 16, 2024
1 parent 0eda90d commit 2d6f7cb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/web-forms/src/components/FormQuestion.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const submitPressed = inject('submitPressed');

<template>
<div
:id="question.nodeId + '_container'"
:id="question.nodeId + '_container'"
:class="{
'question-container': true,
'highlight': submitPressed && question.validationState.violation?.valid === false,
Expand All @@ -36,16 +36,17 @@ const submitPressed = inject('submitPressed');
flex-direction: column;
padding: 0.5rem 1rem 0 1rem;
scroll-margin-top: 4rem;
border-radius: 10px;
border-radius: 10px;
&.highlight {
background-color: var(--error-bg-color);
}
}
:global(.p-panel-content .question-container) {
// Accommodates the spacing for validation background of questions inside groups/repeat
margin-left: -1rem;
}
</style>
</style>

0 comments on commit 2d6f7cb

Please sign in to comment.