@momentum-design/components 0.103.0 → 0.103.1
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 +4 -3
- package/dist/browser/index.js.map +2 -2
- package/dist/components/button/button.component.d.ts +2 -0
- package/dist/components/button/button.component.js +3 -1
- package/dist/components/button/button.styles.js +3 -2
- package/dist/custom-elements.json +7 -1
- package/dist/react/button/index.d.ts +2 -0
- package/dist/react/button/index.js +2 -0
- package/package.json +1 -1
package/dist/browser/index.js
CHANGED
@@ -373,8 +373,9 @@
|
|
373
373
|
--mdc-button-primary-disabled-color: var(--mds-color-theme-inverted-text-primary-disabled);
|
374
374
|
}
|
375
375
|
|
376
|
-
:host([data-btn-type='pill'])
|
377
|
-
:host([data-btn-type='pill-with-icon'])
|
376
|
+
:host([data-btn-type='pill'])::part(button-text),
|
377
|
+
:host([data-btn-type='pill-with-icon'])::part(button-text) {
|
378
|
+
display: block;
|
378
379
|
white-space: nowrap;
|
379
380
|
overflow: hidden;
|
380
381
|
text-overflow: ellipsis;
|
@@ -390,7 +391,7 @@
|
|
390
391
|
part="prefix-icon"
|
391
392
|
length-unit="rem"
|
392
393
|
></mdc-icon>`:""}
|
393
|
-
<slot @slotchange=${this.inferButtonType}></slot>
|
394
|
+
<slot @slotchange=${this.inferButtonType} part="button-text"></slot>
|
394
395
|
${this.postfixFilledIconName?C` <mdc-icon
|
395
396
|
name="${this.postfixFilledIconName}"
|
396
397
|
part="postfix-icon"
|