@spectrum-css/button
Advanced tools
Comparing version 11.0.12 to 11.0.13
@@ -6,2 +6,9 @@ # Change Log | ||
<a name="11.0.13"></a> | ||
##11.0.13 | ||
🗓 | ||
2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/button@11.0.12...@spectrum-css/button@11.0.13) | ||
**Note:** Version bump only for package @spectrum-css/button | ||
<a name="11.0.12"></a> | ||
@@ -8,0 +15,0 @@ ##11.0.12 |
{ | ||
"name": "@spectrum-css/button", | ||
"version": "11.0.12", | ||
"version": "11.0.13", | ||
"description": "The Spectrum CSS button component", | ||
@@ -26,3 +26,3 @@ "license": "Apache-2.0", | ||
"@spectrum-css/icon": "^4.0.3", | ||
"@spectrum-css/tokens": "^11.4.0", | ||
"@spectrum-css/tokens": "^12.0.0", | ||
"gulp": "^4.0.0" | ||
@@ -33,3 +33,3 @@ }, | ||
}, | ||
"gitHead": "b3e5bc8ac403668770788c54eecb65382f2911ea" | ||
"gitHead": "db5d42ecb6d0ba5fca5b7511f4cc9d8e58e637ae" | ||
} |
@@ -6,3 +6,3 @@ import { html } from "lit"; | ||
import { lowerCase, capitalize } from "lodash-es"; | ||
import { capitalize, lowerCase } from "lodash-es"; | ||
@@ -21,2 +21,3 @@ import { Template as Icon } from "@spectrum-css/icon/stories/template.js"; | ||
iconName, | ||
iconAfterLabel = false, | ||
variant, | ||
@@ -57,8 +58,9 @@ staticColor, | ||
> | ||
${when(iconName, () => Icon({ ...globals, iconName, size }))} | ||
${when(iconName && !iconAfterLabel, () => Icon({ ...globals, iconName, size }))} | ||
${when(label && !hideLabel, | ||
() => html`<span class=${`${rootClass}-label`}>${label}</span>` | ||
)} | ||
${when(iconName && iconAfterLabel, () => Icon({ ...globals, iconName, size }))} | ||
</button> | ||
`; | ||
}; |
489290
4322