Skip to content

Ionic 4 RC - Huge fab button when routerLink directive is used #16833

Closed

Description

@Axdron

Bug Report

Ionic version:

[x] 4.x

Current behavior:
When using the routerLink directive in a fab-button, it became huge in the screen. Without the directive, it's ok.

Expected behavior:
I expect the button having the same size with or without the routerLink directive.

Steps to reproduce:

Related code:
The huge button code:
<ion-fab-button [routerLink]="'/categorias'" color="success">

The normal button code:
<ion-fab-button (click)='true' color="success">

insert short code snippets here

Other information:
Huge:
huge

Normal:
normal

Ionic info:
Ionic:

ionic (Ionic CLI) : 4.5.0 (C:\Users\APPELSOFT\AppData\Roaming\npm\node_modules\ionic)
Ionic Framework : @ionic/angular 4.0.0-rc.0
@angular-devkit/build-angular : 0.7.5
@angular-devkit/schematics : 7.1.4
@angular/cli : 6.1.5
@ionic/angular-toolkit : 1.2.0

Cordova:

cordova (Cordova CLI) : 8.1.2 ([email protected])
Cordova Platforms : android 7.1.4
Cordova Plugins : not available

Activity

  1. eatyourpeas commented on Dec 22, 2018

    @eatyourpeas

    I am getting the same behaviour after changing to RC today

  2. eatyourpeas commented on Dec 22, 2018

    @eatyourpeas

    Before:
    screenshot 2018-12-22 at 18 48 18

    After:
    screenshot 2018-12-22 at 18 50 28

  3. wozniak-michal commented on Dec 27, 2018

    @wozniak-michal

    This problem exists also in beta 19.
    If single fab button is used, as a workaround put [routerLink] in <ion-fab> instead of <ion-fab-button> then it looks like it should

  4. added a commit that references this issue on Dec 28, 2018
    ffbf5ad
  5. ionitron-bot commented on Jan 27, 2019

    @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.

  6. locked and limited conversation to collaborators on Jan 27, 2019
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

    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