@momentum-design/components 0.120.22 → 0.120.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/index.js +3 -1
- package/dist/browser/index.js.map +2 -2
- package/dist/components/tab/tab.component.js +3 -1
- package/dist/custom-elements.json +2107 -2107
- package/dist/react/index.d.ts +3 -3
- package/dist/react/index.js +3 -3
- package/package.json +1 -1
@@ -221,9 +221,11 @@ class Tab extends IconNameMixin(Buttonsimple) {
|
|
221
221
|
render() {
|
222
222
|
return html `
|
223
223
|
<div part="container">
|
224
|
-
|
224
|
+
<slot name="prefix">
|
225
|
+
${this.iconName
|
225
226
|
? html ` <mdc-icon name="${this.iconName}" size="1" length-unit="rem" part="icon"></mdc-icon>`
|
226
227
|
: nothing}
|
228
|
+
</slot>
|
227
229
|
${this.text
|
228
230
|
? html ` <mdc-text
|
229
231
|
type=${this.active ? TYPE.BODY_MIDSIZE_BOLD : TYPE.BODY_MIDSIZE_MEDIUM}
|