@webitel/ui-sdk 24.8.10 → 24.8.11
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/package.json
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
colorClass,
|
|
5
5
|
`wt-button--size-${size}`,
|
|
6
6
|
{
|
|
7
|
+
'wt-button--width-by-content': widthByContent,
|
|
7
8
|
'wt-button--contains-icon': containsIcon,
|
|
8
9
|
'wt-button--wide': wide,
|
|
9
10
|
'wt-button--disabled': disabled,
|
|
@@ -65,6 +66,13 @@ export default {
|
|
|
65
66
|
type: Boolean,
|
|
66
67
|
default: false,
|
|
67
68
|
},
|
|
69
|
+
/**
|
|
70
|
+
* Shrinks button to content width
|
|
71
|
+
*/
|
|
72
|
+
widthByContent: {
|
|
73
|
+
type: Boolean,
|
|
74
|
+
default: false,
|
|
75
|
+
},
|
|
68
76
|
/**
|
|
69
77
|
* sets wt-button line-height to 0 to prevent height changing: [stack overflow](https://stackoverflow.com/a/11126701)
|
|
70
78
|
*/
|
|
@@ -143,6 +151,10 @@ export default {
|
|
|
143
151
|
width: 100%;
|
|
144
152
|
}
|
|
145
153
|
|
|
154
|
+
&--width-by-content{
|
|
155
|
+
min-width: 0;
|
|
156
|
+
}
|
|
157
|
+
|
|
146
158
|
// https://stackoverflow.com/a/11126701
|
|
147
159
|
&--contains-icon {
|
|
148
160
|
line-height: 0;
|