Skip to content

Commit

Permalink
chore: apply formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
tomleo committed Sep 17, 2024
1 parent 26471cd commit d00f497
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 16 deletions.
5 changes: 2 additions & 3 deletions es-ds-components/components/es-form-radio-cards.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function handleUpdate(value: any) {
<legend
:id="`${props.id}-legend`"
class="font-size-h1 font-weight-bolder mb-200 pb-0 text-dark"
:class="{'sr-only': props.labelSrOnly}"
:class="{ 'sr-only': props.labelSrOnly }"
tabindex="-1">
{{ props.label }}
</legend>
Expand All @@ -67,8 +67,7 @@ function handleUpdate(value: any) {
:model-value="props.modelValue"
:inline="props.inline || false"
@update:model-value="handleUpdate">
<span
:class="props.labelClass">
<span :class="props.labelClass">
{{ option.text }}
</span>
</es-form-radio-card>
Expand Down
29 changes: 16 additions & 13 deletions es-ds-docs/pages/molecules/radio-cards.vue
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ onMounted(async () => {
docCode.value = $prism.normalizeCode(docSource.default);
$prism.highlight();
}
})
});
function handleSubmit() {
// eslint-disable-next-line no-console
Expand Down Expand Up @@ -278,25 +278,28 @@ const propTableRowsRadioCards = [
<ds-prop-table :rows="propTableRowsRadioCard" />
</div>

<h2>
Migrating from ESDS 2.0 form radio cards
</h2>
<h2>Migrating from ESDS 2.0 form radio cards</h2>
<p>
The previous
<a href="https://github.com/EnergySage/es-ds-legacy/blob/main/es-vue-base/src/lib-components/EsFormRadioCard.vue">
<a
href="https://github.com/EnergySage/es-ds-legacy/blob/main/es-vue-base/src/lib-components/EsFormRadioCard.vue">
radio card
</a> and <a href="https://github.com/EnergySage/es-ds-legacy/blob/main/es-vue-base/src/lib-components/EsFormRadioCards.vue">radio card group</a> components were based on
<a href="https://bootstrap-vue.org/docs/components/form-radio">
bootstrap-vue
</a>'s implementation.
</a>
and
<a
href="https://github.com/EnergySage/es-ds-legacy/blob/main/es-vue-base/src/lib-components/EsFormRadioCards.vue"
>radio card group</a
>
components were based on
<a href="https://bootstrap-vue.org/docs/components/form-radio"> bootstrap-vue </a>'s implementation.
</p>
<p>
Going forward the <code>v-model</code> should be on the <strong>radio card group</strong>
component when passing in the <code>options</code> prop.
Going forward the <code>v-model</code> should be on the <strong>radio card group</strong> component when
passing in the <code>options</code> prop.
</p>
<p>
When using the radio card group's default slot
the <code>v-model</code> should be on the <strong>radio card</strong> components within that slot.
When using the radio card group's default slot the <code>v-model</code> should be on the
<strong>radio card</strong> components within that slot.
</p>

<ds-doc-source
Expand Down

0 comments on commit d00f497

Please sign in to comment.