#6474 closed enhancement (fixed)
Update SCSS mixin conditional syntax
Reported by: | hnla | Owned by: | johnjamesjacoby |
---|---|---|---|
Milestone: | 2.4 | Priority: | low |
Severity: | trivial | Version: | |
Component: | Templates | Keywords: | |
Cc: |
Description
A question arises over the correct syntax to use for conditional ternary operators in SCSS mixins, both of the following work:
@if($foo){
and @if $foo {
In the companion SCSS sheets the former has been used @if($foo){
however online most examples are without the braces.
This ticket just to remind us to re-examine and nail down whether either is acceptable or whether one is preferred and to change our usage to fit to best practise.
Change History (3)
Note: See
TracTickets for help on using
tickets.
In 9930: