Welcome to the Blazor feedback portal. We’re happy you’re here! If you have feedback on how to improve the Blazor, we’d love to hear it!>
Thanks for joining our community and helping improve Syncfusion products!
On desktop browsers, the same component is displayed in the same form regardless of inside or outside the dialog.
However, on mobile devices, the same component is displayed differently.
Since SfDialog includes "e-device" css class on mobile devices, following css rule is applied:
.e-device .e-dlg-content, .e-device .e-dlg-content * {
font-size: 16px;
}
Also, "font-size" is used as inherited property rather than direct property to the element in most of the time.
The universal CSS selector (*) prevents the inheritance of "font-size" property, so the same component is displayed differently on mobile devices.
This is not problem if "CSS isolation" is utilized or override above rule to "font-size: inherit;" and use "!important" modifier.
However, when it comes to 3rd party component built with foreign CSS library such as "bootstrap", this behavior cannot be changed due to low CSS specificity.
Therefore, a fundamental solution is needed.