Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

flex-order doesn't work as expected #5646

Closed

Description

@smashercosmo

flex-order doesn't support negative values, but according to documentation negative values should be supported

Activity

  1. topherfangio commented on Nov 10, 2015

    @topherfangio
    Contributor

    @smashercosmo What version are you using? I remember seeing a recent commit (7264cab possibly) that added this support.

  2. added
    needs: more infoThe issue does not contain enough information for the team to determine if it is a real bug
    on Nov 10, 2015
  3. smashercosmo commented on Nov 10, 2015

    @smashercosmo
    Author

    @topherfangio I just looked at the sources in master and what I see is

    @mixin flex-order-for-name($sizes:null) {
      @if $sizes == null {
        $sizes : '';
    
        .flex-order {
         order : 0;
        }
      }
    
      @for $i from 0 through 19 {
        $order : '';
        $suffix : '';
    
        @each $s in $sizes {
          @if $s != '' { $suffix : '#{$s}-#{$i}'; }
          @else        { $suffix : '#{$i}';       }
    
          $order : '.flex-order-#{$suffix}';
        }
    
        #{$order} {
          order: #{$i};
        }
      }
    }
  4. smashercosmo commented on Nov 11, 2015

    @smashercosmo
    Author

    @topherfangio so no negative values as you see)

  5. topherfangio commented on Nov 11, 2015

    @topherfangio
    Contributor

    It looks like this was added and then removed pretty quickly.

    @ThomasBurleson - When you get a chance, you provide some insight?

  6. smashercosmo commented on Nov 16, 2015

    @smashercosmo
    Author

    @ThomasBurleson any response on that?

  7. added this to the 1.0-rc7 milestone on Dec 4, 2015
  8. ThomasBurleson commented on Dec 4, 2015

    @ThomasBurleson
    Contributor

    @smashercosmo - I do not recall why it was redacted. I will restore with:

    @mixin flex-order-for-name($sizes:null) {
      @if $sizes == null {
        $sizes : '';
    
        .flex-order {
         order : 0;
        }
      }
    
      @for $i from -10 through 10 {
        $order : '';
        $suffix : '';
    
        @each $s in $sizes {
          @if $s != '' { $suffix : '#{$s}-#{$i}'; }
          @else        { $suffix : '#{$i}';       }
    
          $order : '.flex-order-#{$suffix}';
        }
    
        #{$order} {
          order: #{$i};
        }
      }
    }
  9. added a commit that references this issue on Dec 4, 2015
    887927c
  10. ThomasBurleson commented on Dec 4, 2015

    @ThomasBurleson
    Contributor

    Fixes are pending with #6082

  11. added
    pr: merge readyThis PR is ready for a caretaker to review
    and removed
    needs: more infoThe issue does not contain enough information for the team to determine if it is a real bug
    on Dec 4, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions