name: Action Button status: Verified SpectrumSiteSlug: https://spectrum.adobe.com/page/button/ description: | - For Action Buttons that only contain an icon with no label, do not include the element with the `.spectrum-ActionButton-label` class in the markup - If an icon and a label are both used, ensure that the element with the `.spectrum-ActionButton-label` class comes after the `.spectrum-Icon` element. - If the hold icon is used, ensure that the element with the `.spectrum-ActionButton-hold` class comes before the `.spectrum-Icon` element. sections: - name: Migration Guide description: | ### T-shirt sizing Action Button now supports t-shirt sizing and requires that you specify the size by adding a `.spectrum-ActionButton--size*` class. ### Action Button is now a separate component Action Button has been moved to the [Action Button](actionbutton.html) component. ### Change workflow icon size Previously, all Action Buttons used `.spectrum-Icon--sizeS`. This has changed: | Action button classname | Workflow icon classname | | -------------------------------- | --------------------------------- | | `.spectrum-ActionButton--sizeS` | `.spectrum-Icon--sizeS` | | `.spectrum-ActionButton--sizeM` | `.spectrum-Icon--sizeM` | | `.spectrum-ActionButton--sizeL` | `.spectrum-Icon--sizeL` | | `.spectrum-ActionButton--sizeXL` | `.spectrum-Icon--sizeXL` | ### Change hold icon classnames Hold icon classnames must be set as follows: | Action button classname | Hold icon classname | | -------------------------------- | ------------------------------------ | | `.spectrum-ActionButton--sizeS` | `.spectrum-UIIcon-CornerTriangle75` | | `.spectrum-ActionButton--sizeM` | `.spectrum-UIIcon-CornerTriangle100` | | `.spectrum-ActionButton--sizeL` | `.spectrum-UIIcon-CornerTriangle200` | | `.spectrum-ActionButton--sizeXL` | `.spectrum-UIIcon-CornerTriangle300` | ### Include markup for hold icon before workflow icon Because of the way padding is calculated, the hold icon must be placed before the workflow icon. examples: - id: actionbutton name: Sizing markup: |