@@ -57,6 +57,10 @@ export default {
57
57
'--uui-button-contrast-hover' : { control : { type : 'color' } } ,
58
58
'--uui-button-background-color-disabled' : { control : { type : 'color' } } ,
59
59
'--uui-button-contrast-disabled' : { control : { type : 'color' } } ,
60
+ '--uui-button-content-align' : {
61
+ control : { type : 'select' } ,
62
+ options : [ 'left' , 'center' , 'right' ] ,
63
+ } ,
60
64
} ,
61
65
parameters : {
62
66
readme : {
@@ -79,6 +83,7 @@ const cssProps = [
79
83
'--uui-button-contrast-hover' ,
80
84
'--uui-button-background-color-disabled' ,
81
85
'--uui-button-contrast-disabled' ,
86
+ '--uui-button-content-align' ,
82
87
] ;
83
88
84
89
const reducer = ( prev : string , next : string , i : number ) =>
@@ -428,3 +433,30 @@ export const MultiLine: Story = props => {
428
433
} ;
429
434
430
435
MultiLine . args = { look : 'primary' } ;
436
+
437
+ export const ContentAlignment = props => html `
438
+ < uui-button
439
+ style ="max-width: 400px; width: 100%;
440
+ --uui-button-content-align: ${ props [ '--uui-button-content-align' ] } "
441
+ look ="primary "
442
+ color ="danger "
443
+ label ="A11Y proper label ">
444
+ Content alignment
445
+ </ uui-button >
446
+ ` ;
447
+ ContentAlignment . args = { '--uui-button-content-align' : 'left' } ;
448
+ ContentAlignment . parameters = {
449
+ controls : { include : [ '--uui-button-content-align' ] } ,
450
+ docs : {
451
+ source : {
452
+ code : `
453
+ <uui-button style="max-width: 400px; width: 100%; --uui-button-content-align: left}"
454
+ look="primary"
455
+ color="danger"
456
+ label="A11Y proper label">
457
+ Content alignment
458
+ </uui-button>
459
+ ` ,
460
+ } ,
461
+ } ,
462
+ } ;
0 commit comments