You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Fluent controls don't respect BorderThickness set to 0 #7621
difficulty/challenging 🤯Categorizes an issue for which the difficulty level is reachable with internals understandingkind/bugSomething isn't workingproject/styling 👔Categorizes an issue or PR as relevant to element styling
Using the Fluent version 2 Style on TextBox, it is impossible to set BorderThickness to zero and have the border disappear. Consider the following code:
@MartinZikmund You implemented the new Fluent v2 borders for Android I believe. Do you expect this is an easy fix? Can you point in the right direction?
Workaround here would be to create a custom Style for Button to hide the border, but proper fix will require adjusting the customized template. I can look into this after I finish my current task
No rush, I was under the impression the linear gradient borders required some larger work-arounds to get working. If it was just some tweaks to the template this should be quickly solvable.
We were (and still are) aiming for a full workaround-less implementation for linear gradient borders (Android, iOS, macOS and Skia are actually basically ready in this regard), but getting it working on WASM is super tricky, as gradients don't play nice with corner radius, so that's why we went with this simpler solution for now until we find a reliable solution on web
changed the title [-]Fluent v2 TextBox doesn't respect BorderThickness set to Zero[/-][+]Fluent controls don't respect `BorderThickness` set to 0[/+]on Sep 5, 2023
difficulty/challenging 🤯Categorizes an issue for which the difficulty level is reachable with internals understandingkind/bugSomething isn't workingproject/styling 👔Categorizes an issue or PR as relevant to element styling
Activity
robloo commentedon Dec 10, 2021
@MartinZikmund You implemented the new Fluent v2 borders for Android I believe. Do you expect this is an easy fix? Can you point in the right direction?
MartinZikmund commentedon Dec 10, 2021
Workaround here would be to create a custom
StyleforButtonto hide the border, but proper fix will require adjusting the customized template. I can look into this after I finish my current taskrobloo commentedon Dec 10, 2021
No rush, I was under the impression the linear gradient borders required some larger work-arounds to get working. If it was just some tweaks to the template this should be quickly solvable.
MartinZikmund commentedon Dec 10, 2021
We were (and still are) aiming for a full workaround-less implementation for linear gradient borders (Android, iOS, macOS and Skia are actually basically ready in this regard), but getting it working on WASM is super tricky, as gradients don't play nice with corner radius, so that's why we went with this simpler solution for now until we find a reliable solution on web
[-]Fluent v2 TextBox doesn't respect BorderThickness set to Zero[/-][+]Fluent controls don't respect `BorderThickness` set to 0[/+]MartinZikmund commentedon Sep 5, 2023
This applies to other controls like
Buttontoo (#13348)