Skip to content

a ion-button styling being applied incorrectly #8249

@alan-agius4

Description

@alan-agius4

Short description of the problem:

The fore color of the button is being overwritten when it's applied on an a tag because of the 2 directives (text and button) that are setting the "color".

What behavior are you expecting?

Fore color should not be overwritten.

Steps to reproduce:

  1. create an a tag with ion-button as attribute and give it a color value
<a ion-button block color="secondary">Text</a>

output html

<a block="" color="secondary" ion-button="" class="text-ios disable-hover text-ios-secondary button button-ios button-default button-default-ios button-block button-block-ios button-ios-secondary" ng-reflect-color="secondary" ng-reflect-block=""><span class="button-inner">Text</span><div class="button-effect"></div></a>

image

Which Ionic Version? 2 RC 0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions