-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix --mud-appbar-height
does not match actual app bar height
#10217
base: dev
Are you sure you want to change the base?
Fix --mud-appbar-height
does not match actual app bar height
#10217
Conversation
Quality Gate passedIssues Measures |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev #10217 /- ##
==========================================
Coverage 91.16% 91.21% 0.05%
==========================================
Files 411 411
Lines 12467 12506 39
Branches 2420 2439 19
==========================================
Hits 11365 11407 42
Misses 557 555 -2
Partials 545 544 -1 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I really dont understand what you are trying to achieve here?
Could you please elaborate, the issue you refer to and the changes you do, i dont see the connection.
Also we will not merge the current solution to the library because of the CSS added to the :root
<MudAppBar Style="padding-top: env(safe-area-inset-top)"/>
<MudMainContent Style="margin-top: calc(env(safe-area-inset-top) var(--mud-appbar-height))">
@Body
</MudMainContent>
This PR makes
Why? |
Okay then i understand what you are trying to achieve, you want the variable to be updated with the real value depending on device size. Doing it this way in the root is messy and is always calculated in your browser, see this: The current AppBar Height property is just meant to be the base size, where it gets changed depending on device size. I don't think the gains here is worth moving it all to the root: as a component library as it effects everyone and is a specific request. |
Description
Fixes #10083.
This also includes the fix for the issue of duplicated CSS variables reported in #10214.
How Has This Been Tested?
(
DateRangePickerTests.FormatFirst_Should_RenderCorrectly
andDateRangePickerTests.FormatLast_Should_RenderCorrectly
fail even before this PR)MudBlazor.Docs.Server
.Type of Changes
LayoutProperties.AppbarHeight
is now obsoleted and renamed toLayoutProperties.AppBarBaseHeight
as its current naming is confusingChecklist
dev
).