Skip to content

Commit

Permalink
Merge pull request #4 from HELWATANY/main
Browse files Browse the repository at this point in the history
fix(slider): fix slider validation layout shift
  • Loading branch information
logaretm authored Dec 31, 2024
2 parents ba72608 + fd81a7d commit e5861ee
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/content/docs/guides/fields/_partials/_slider.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const thumbData = useThumbMetadata(0);
<Thumb />
</div>
<div v-if="errorMessage" v-bind="errorMessageProps" class="error">
<div v-bind="errorMessageProps" class="error">
{{ errorMessage }}
</div>
</div>
Expand All @@ -36,6 +36,7 @@ const thumbData = useThumbMetadata(0);
--color-text: #333;
--color-error: #f00;
display: flex;
width: 300px;
align-items: center;
gap: 6px 14px;
flex-wrap: wrap;
Expand Down Expand Up @@ -65,18 +66,13 @@ const thumbData = useThumbMetadata(0);
}
.error {
display: none;
display: block;
min-height: 18px;
font-size: 13px;
color: #f00;
width: 100%;
}
&:has([aria-invalid='true']) {
.error {
display: block;
}
}
&:has([aria-orientation='vertical']) {
.track {
flex-direction: column;
Expand Down

0 comments on commit e5861ee

Please sign in to comment.