<gux-action-button-legacy text="Primary" accent="primary" is-open="true">
<gux-action-item text="test"></gux-action-item>
<gux-action-item text="test2"></gux-action-item>
<gux-action-item text="test3"></gux-action-item>
<gux-action-list-divider></gux-action-list-divider>
<gux-action-item><span>I am a span</span></gux-action-item>
</gux-action-button-legacy>
Steps:
- Replace the
gux-action-button-legacy
tag's text property with atitle
slot
- <gux-action-button-legacy text="Primary" accent="primary" is-open="true">
+ <gux-action-button accent="primary" is-open="true">
+ <div slot="title">Primary</div>
<gux-list-item>test</gux-list-item>
- Replace the
gux-action-item
tag name withgux-list-item
- The
gux-list-item
does not have atext
property. All content must be slotted withingux-list-item
. - The
gux-list-item
does not have avalue
property so this information will have to be passed to yourclick
handler directly
- The
- <gux-action-item text="test"></gux-action-item>
+ <gux-list-item>test</gux-list-item>
- Replace the
gux-action-list-divider
tag name withgux-list-divider
- <gux-action-list-divider></gux-action-list-divider>
+ <gux-list-divider></gux-list-divider>
Completed V4 Migration:
<gux-action-button accent="primary" is-open="true">
<div slot="title">Primary</div>
<gux-list-item>test</gux-list-item>
<gux-list-item>test2</gux-list-item>
<gux-list-item>test3</gux-list-item>
<gux-list-divider></gux-list-divider>
<gux-list-item>I am a span</span></gux-list-item>
</gux-action-button>