Skip to content
This repository has been archived by the owner on Apr 4, 2019. It is now read-only.

Setting var to 'transparent' does not work #101

Open
anthonyadamski opened this issue Nov 29, 2018 · 1 comment
Open

Setting var to 'transparent' does not work #101

anthonyadamski opened this issue Nov 29, 2018 · 1 comment
Labels
bug Something isn't working needs info Needs more information before it can be acted on

Comments

@anthonyadamski
Copy link

anthonyadamski commented Nov 29, 2018

It seems 'transparent' is either a reserved string or this is a bug. It works in other compilers. Compiler never makes it into @else if ($navbar-type == 'transparent')

Example code:

$navbar-type == 'transparent'

// Include modifer components as needed
  @if $navbar-type == 'hamburger' {
    @include hamburger();
  }
  @else if ($navbar-type == 'classic') {
    @include classic();
  }
  @else if ($navbar-type == 'transparent') {
    @include transparent();
  }
  @else if ($navbar-type == 'modern') {
    @include modern();
  }
@nex3
Copy link
Contributor

nex3 commented Nov 29, 2018

This works for me. What version of Ruby Sass are you using?

@nex3 nex3 added bug Something isn't working needs info Needs more information before it can be acted on labels Nov 29, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working needs info Needs more information before it can be acted on
Projects
None yet
Development

No branches or pull requests

2 participants