Skip to content

bug(refresher): white line underneath the navbar #10994

Closed

Description

@dylanvdmerwe

Ionic version: (check one with "x")
[ ] 1.x
[x] 2.x

I'm submitting a ... (check one with "x")
[x] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/

Current behavior:
If you put an ion-refresher in your page, a white line appears underneath the navigation bar which is especially noticeable when the navbar and surrounding colors are dark. As soon as I remove the ion-refresher the white line goes away.

image

Expected behavior:
Adding an ion-refresher should not make such visible changes to the navbar.

Related code:

  <ion-refresher (ionRefresh)="refreshForms($event)">
    <ion-refresher-content pullingText="Pull to refresh forms" refreshingText="Loading forms..."></ion-refresher-content>
  </ion-refresher>

Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):

Cordova CLI: 6.5.0
Ionic Framework Version: 2.3.0
Ionic CLI Version: 2.2.2
Ionic App Lib Version: 2.2.1
Ionic App Scripts Version: 1.1.4
ios-deploy version: 1.9.0
ios-sim version: 5.0.10
OS: macOS Sierra
Node Version: v6.9.5
Xcode version: Xcode 8.3 Build version 8E162

Activity

  1. jgw96 commented on Mar 31, 2017

    @jgw96
    Contributor

    Interesting issue, thanks for opening! We will take a look at this.

  2. brandyscarney commented on Apr 18, 2017

    @brandyscarney
    Member

    A workaround is to add this to the variable.scss file:

    $refresher-border-color: transparent;
    

    I need to see if we can remove this border, I'm not sure why it's there. cc @manucorporat

  3. dylanvdmerwe commented on Apr 18, 2017

    @dylanvdmerwe
    ContributorAuthor

    Thanks @brandyscarney

    Workaround seems to do the trick.

  4. manucorporat commented on Apr 18, 2017

    @manucorporat
    Contributor

    @brandyscarney no idea, maybe git blame?

  5. Manduro commented on Jun 12, 2017

    @Manduro
    Contributor

    The border looks good when using a refresher on a list, like in the api demo. It would be weird without it. http://ionicframework.com/docs/api/components/refresher/Refresher/

    It should only be visible when pulling though. A style exists for this already:

    .has-refresher > .scroll-content {
      margin-top: -1px;
    }

    Problem is that this style is overridden by the margins that are dynamically added to .scroll-content to compensate for header and footer heights.

  6. added a commit that references this issue on Jun 12, 2017
    ccf0d7f
  7. Manduro commented on Jun 12, 2017

    @Manduro
    Contributor

    Fix submitted! #12015

  8. ionitron-bot commented on Sep 2, 2018

    @ionitron-bot

    Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

  9. locked and limited conversation to collaborators on Sep 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions