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
I'm proposing that the '@' prefix being used in the container queries be configurable, or at least be able to use some alternative character.
I'm developing websites using Microsoft's Blazor WASM technology. A big part of the blazor syntax is the '@' symbol. It allows me to output variables like this <p>@myVariable</p>. It also provides other critical functionality like looping @foreach(var x in y) { ... } and conditions @if(x == 12) { ... }.
This clashes with container query plugins use of the '@' symbol to denote a container and the style overrides. While Microsoft does provide the capability to to escape the '@' symbol by using 2 of them in a sequence (@@), the plugin is not able to pick up the @@container correctly when there are 2 '@' symbols in use. This leads to a painful work arounds where I need to place the class name in a string variable in order to use them.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm proposing that the '@' prefix being used in the container queries be configurable, or at least be able to use some alternative character.
I'm developing websites using Microsoft's Blazor WASM technology. A big part of the blazor syntax is the '@' symbol. It allows me to output variables like this
<p>@myVariable</p>
. It also provides other critical functionality like looping@foreach(var x in y) { ... }
and conditions@if(x == 12) { ... }
.This clashes with container query plugins use of the '@' symbol to denote a container and the style overrides. While Microsoft does provide the capability to to escape the '@' symbol by using 2 of them in a sequence (@@), the plugin is not able to pick up the
@@container
correctly when there are 2 '@' symbols in use. This leads to a painful work arounds where I need to place the class name in a string variable in order to use them.Beta Was this translation helpful? Give feedback.
All reactions