Skip to content

Commit

Permalink
feat: add space-between alignment for dialog actions buttons (#450)
Browse files Browse the repository at this point in the history
Co-authored-by: anastasiia_glushkova <[email protected]>
  • Loading branch information
glushkova91 and anastasiia_glushkova authored Jan 26, 2024
1 parent f2ac4b4 commit a4abb0f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,7 @@
.cat-dialog-actions-end {
flex-direction: row-reverse;
}

.cat-dialog-actions-space-between {
justify-content: space-between;
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@ import { ChangeDetectionStrategy, Component, Input, ViewEncapsulation } from '@a
host: {
class: 'cat-dialog-actions',
'[class.cat-dialog-actions-center]': 'align === "center"',
'[class.cat-dialog-actions-end]': 'align === "end"'
'[class.cat-dialog-actions-end]': 'align === "end"',
'[class.cat-dialog-actions-space-between]': 'align === "space-between"'
}
})
export class CatDialogActionsComponent {
/**
* Horizontal alignment of action buttons.
*/
@Input() align: 'start' | 'center' | 'end' = 'end';
@Input() align: 'start' | 'center' | 'end' | 'space-between' = 'end';
}

0 comments on commit a4abb0f

Please sign in to comment.