subscription-swatches
WAI-ARIA tabs and radios that choose a selling plan.
Where it can go
- Inside
smootify-product. - Must contain
[role="tablist"],[role="tab"],[role="tabpanel"]. - Out of place, Smootify removes it from the page: also when the product has no selling plans.
What it requires
Nothing beyond Smootify: it works on every plan.
Attributes on the element
- It reads
auto-select-plan,auto-select-index,data-selected-group,data-selected-option-index.
Attributes inside it
| Group | Attribute name | Values |
|---|---|---|
| Selling plans | subscription-group | 1 |
| Loading | skeleton | 5 |
| Subscription choices (condition) | group-condition | 2 |
Loading
Its code loads only on pages that have subscription-swatches.