Skip to content

Commit

Permalink
fixed with guideline
Browse files Browse the repository at this point in the history
  • Loading branch information
rationality6 committed May 5, 2020
1 parent 1500a77 commit a7f9468
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions packages/kolibri-components/src/KRadioButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@
/>

<span class="text" dir="auto">
<span class="truncate-text">{{ label }}</span>
<span
<div class="truncate-text">{{ label }}</div>
<div
v-if="description"
class="description"
:style="[{ color: disabled ? '' : $themeTokens.annotation }, disabledStyle ]"
>
{{ description }}
</span>
</div>
<slot></slot>
</span>

Expand Down Expand Up @@ -188,25 +188,21 @@
height: $radio-height;
}
.text,
.description {
display: inline-block;
}
.text {
display: inline-block;
max-width: calc(100% - #{$radio-height});
padding-left: 8px;
line-height: $radio-height;
}
.description {
width: 100%;
font-size: 12px;
line-height: normal;
}
.truncate-text {
display: inline-block;
width: 100%;
overflow: hidden;
text-overflow: ellipsis;
}
.description {
font-size: 12px;
line-height: normal;
}
</style>

0 comments on commit a7f9468

Please sign in to comment.