-
Notifications
You must be signed in to change notification settings - Fork 377
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FluentGrid] Fix the Grid "external margins" (#1646)
* Fix the Grid margin * Update Gap to Spacing
- Loading branch information
Showing
10 changed files
with
45 additions
and
28 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
@namespace Microsoft.FluentUI.AspNetCore.Components | ||
@inherits FluentComponentBase | ||
|
||
<div id="@GetId()" class="@ClassValue" style="@StyleValue" spacing="@Spacing" @attributes="AdditionalAttributes"> | ||
@ChildContent | ||
</div> | ||
<div class="@ClassValue" style="@StyleValue" @attributes="AdditionalAttributes"> | ||
<div id="@GetId()" class="fluent-grid" style="@($"justify-content: {Justify.ToAttributeValue()};")" spacing="@Spacing"> | ||
@ChildContent | ||
</div> | ||
</div> |
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
4 changes: 3 additions & 1 deletion
4
tests/Core/Grid/FluentGridTests.FluentGrid_Default.verified.razor.html
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
|
||
<div class="fluent-grid" style="justify-content: flex-start;" spacing="3" b-ljlkesaj3r="">My content</div> | ||
<div b-9fxwfzgab8=""> | ||
<div id="xxx" class="fluent-grid" style="justify-content: flex-start;" spacing="3" b-9fxwfzgab8="">My content</div> | ||
</div> |
6 changes: 4 additions & 2 deletions
6
tests/Core/Grid/FluentGridTests.FluentGrid_Items_AllBreakpoints.verified.razor.html
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
|
||
<div class="fluent-grid" style="justify-content: flex-start;" spacing="3" b-ljlkesaj3r=""> | ||
<div xs="1" sm="2" md="3" lg="4" xl="5" xxl="6">My cell</div> | ||
<div b-9fxwfzgab8=""> | ||
<div id="xxx" class="fluent-grid" style="justify-content: flex-start;" spacing="3" b-9fxwfzgab8=""> | ||
<div xs="1" sm="2" md="3" lg="4" xl="5" xxl="6">My cell</div> | ||
</div> | ||
</div> |
8 changes: 5 additions & 3 deletions
8
tests/Core/Grid/FluentGridTests.FluentGrid_Items_Default.verified.razor.html
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
|
||
<div class="fluent-grid" style="justify-content: flex-start;" spacing="3" b-ljlkesaj3r=""> | ||
<div xs="6" md="6">Cell 1</div> | ||
<div xs="6" md="6">Cell 2</div> | ||
<div b-9fxwfzgab8=""> | ||
<div id="xxx" class="fluent-grid" style="justify-content: flex-start;" spacing="3" b-9fxwfzgab8=""> | ||
<div xs="6" md="6">Cell 1</div> | ||
<div xs="6" md="6">Cell 2</div> | ||
</div> | ||
</div> |
6 changes: 4 additions & 2 deletions
6
tests/Core/Grid/FluentGridTests.FluentGrid_Items_JustifyGap.verified.razor.html
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
|
||
<div class="fluent-grid" style="justify-content: flex-start;" spacing="3" b-ljlkesaj3r=""> | ||
<div style="justify-content: center; display: flex; gap: 10px;" xs="1">My cell</div> | ||
<div b-9fxwfzgab8=""> | ||
<div id="xxx" class="fluent-grid" style="justify-content: flex-start;" spacing="3" b-9fxwfzgab8=""> | ||
<div style="justify-content: center; display: flex; gap: 10px;" xs="1">My cell</div> | ||
</div> | ||
</div> |
6 changes: 4 additions & 2 deletions
6
tests/Core/Grid/FluentGridTests.FluentGrid_Items_NoBreapoint.verified.razor.html
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
|
||
<div class="fluent-grid" style="justify-content: flex-start;" spacing="3" b-ljlkesaj3r=""> | ||
<div style="min-width: 200px;" xs="0">My cell</div> | ||
<div b-9fxwfzgab8=""> | ||
<div id="xxx" class="fluent-grid" style="justify-content: flex-start;" spacing="3" b-9fxwfzgab8=""> | ||
<div style="min-width: 200px;" xs="0">My cell</div> | ||
</div> | ||
</div> |
4 changes: 3 additions & 1 deletion
4
tests/Core/Grid/FluentGridTests.FluentGrid_SpacingJustify.verified.razor.html
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
|
||
<div class="fluent-grid" style="justify-content: center;" spacing="5" b-ljlkesaj3r="">My content</div> | ||
<div b-9fxwfzgab8=""> | ||
<div id="xxx" class="fluent-grid" style="justify-content: center;" spacing="5" b-9fxwfzgab8="">My content</div> | ||
</div> |