Skip to content

Commit

Permalink
feat: add migration docs
Browse files Browse the repository at this point in the history
  • Loading branch information
tomleo committed Sep 17, 2024
1 parent 6978e85 commit eab7832
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions es-ds-docs/pages/molecules/radio-cards.vue
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,27 @@ const propTableRowsRadioCards = [
<ds-prop-table :rows="propTableRowsRadioCards" />
</div>

<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">
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.
</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.
</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.
</p>

<ds-doc-source
comp-title="Radio card component"
:comp-code="componentCodeRadioCard"
Expand Down

0 comments on commit eab7832

Please sign in to comment.