@@ -281,12 +281,12 @@ export default {
281281
282282 /**
283283 * The size of the button.
284- * @values xs, sm, md, lg, xl
284+ * @values 100, 200, 300, 400, 500
285285 */
286286 size: {
287- type: String ,
288- default: ' md ' ,
289- validator : (s ) => Object .keys (BUTTON_SIZE_MODIFIERS ).includes (s ),
287+ type: [ String , Number ] ,
288+ default: 300 ,
289+ validator : (s ) => Object .keys (BUTTON_SIZE_MODIFIERS ).includes (String (s) ),
290290 },
291291
292292 /**
@@ -508,11 +508,11 @@ export default {
508508 },
509509
510510 iconSize () {
511- return BUTTON_ICON_SIZES [this .size ];
511+ return BUTTON_ICON_SIZES [String ( this .size ) ];
512512 },
513513
514514 loaderSize () {
515- return BUTTON_ICON_SIZES [this .size ];
515+ return BUTTON_ICON_SIZES [String ( this .size ) ];
516516 },
517517 },
518518
@@ -547,7 +547,7 @@ export default {
547547 return [
548548 ' d-link' ,
549549 getLinkKindModifier (this .linkKind , this .linkInverted ),
550- BUTTON_SIZE_MODIFIERS [this .size ],
550+ BUTTON_SIZE_MODIFIERS [String ( this .size ) ],
551551 { ' d-link--no-underline' : ! this .resolvedUnderline },
552552 ];
553553 }
@@ -558,7 +558,7 @@ export default {
558558 ' d-btn' ,
559559 BUTTON_IMPORTANCE_MODIFIERS [this .importance ],
560560 BUTTON_KIND_MODIFIERS [this .kind ],
561- BUTTON_SIZE_MODIFIERS [this .size ],
561+ BUTTON_SIZE_MODIFIERS [String ( this .size ) ],
562562 {
563563 ' d-btn--circle' : this .circle ,
564564 ' d-btn--loading' : this .loading ,
0 commit comments