[buddypress-trac] [BuddyPress Trac] #6474: Update SCSS mixin conditional syntax
buddypress-trac
noreply at wordpress.org
Wed Jun 3 21:42:38 UTC 2015
#6474: Update SCSS mixin conditional syntax
-------------------------+-----------------
Reporter: hnla | Owner:
Type: enhancement | Status: new
Priority: low | Milestone: 2.4
Component: Appearance | Version:
Severity: trivial | Keywords:
-------------------------+-----------------
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.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6474>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list