-
Notifications
You must be signed in to change notification settings - Fork 363
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Stack] Added 'Stretch' horizontal alignment option (#2800)
* Added missing 'Stretch' horizontal alignment option to FluentStack Introduced a new horizontal alignment option, `Stretch`, to the `FluentStack` component. Updated the `HorizontalAlignment` enum in `HorizontalAlignment.cs` to include the `Stretch` value with a summary comment. Modified the `GetHorizontalAlignment` method in `FluentStack.razor.cs` to map `HorizontalAlignment.Stretch` to the string "stretch". * Add validation to Alignment property in DialogParameters The Alignment property now includes a custom setter that throws an ArgumentException if set to HorizontalAlignment.Stretch, ensuring this value is not supported. * Moved "_alignment" variable declaration to top of DialogParameters class * Added a note re. stretch to the XML documentation for the `Alignment` property * Added unit test for DialogParameters invalid Aligment value --------- Co-authored-by: Vincent Baaij <[email protected]> Co-authored-by: Denis Voituron <[email protected]>
- Loading branch information
1 parent
227e2b7
commit 1a408be
Showing
4 changed files
with
48 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters