Skip to content

Commit

Permalink
Merge pull request #851 from 3YOURMIND/kt-value-label-reduce-paddings…
Browse files Browse the repository at this point in the history
…-and-loading-bars-heights

style(kt-value-label): reduce paddings and loading bars heights
  • Loading branch information
carsoli authored Dec 7, 2023
2 parents 75c13a1 + 5157c47 commit 0fb9e19
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
11 changes: 11 additions & 0 deletions packages/documentation/pages/usage/components/value-label.vue
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,17 @@
</div>
</KtForm>
</KtI18nContext>
<h2>Usage</h2>
<p>
- When stacking labels on top of each other, create a layout that ensure a
min margin of <code>16px</code> (<code>unit-4</code>) between the various
value labels.
</p>
<p>
- The last row of the layout where value labels are stacked should not
contain any extra margin → ensure a good margin is handled on the
different sections of the more general layout.
</p>
</div>
</template>

Expand Down
6 changes: 3 additions & 3 deletions packages/kotti-ui/source/kotti-value-label/KtValueLabel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
<template v-if="isLoading">
<div
v-if="showHeader || $slots.helpText"
class="kt-value-label-loading__header skeleton rectangle"
class="kt-value-label-loading__header skeleton rectangle md"
/>
<div class="kt-value-label-loading__value skeleton rectangle" />
<div class="kt-value-label-loading__value skeleton rectangle lg" />
</template>
<template v-else>
<div v-if="showHeader || $slots.helpText" class="kt-value-label__header">
Expand Down Expand Up @@ -105,7 +105,7 @@ export default defineComponent<KottiValueLabel.PropsInternal>({
}
> *:not(:last-child) {
margin-bottom: var(--unit-2);
margin-bottom: var(--unit-1);
}
&__header {
Expand Down

0 comments on commit 0fb9e19

Please sign in to comment.