fix(ion-button): ion-button on a tag should be excluded (#8250)

fixes #8249
This commit is contained in:
Alan Agius
2016-09-28 19:13:31 +02:00
committed by Manu Mtz.-Almeida
parent 5fb53fcfd8
commit f1d9368aff

View File

@@ -9,7 +9,7 @@ import { Ion } from '../ion';
* Select all of the HTML text elements with the color attribute to apply the text-color class.
*/
@Directive({
selector: 'h1[color], h2[color], h3[color], h4[color], h5[color], h6[color], a[color], p[color], span[color], b[color], i[color], strong[color], em[color], small[color], sub[color], sup[color]'
selector: 'h1[color], h2[color], h3[color], h4[color], h5[color], h6[color], a[color]:not([ion-button]), p[color], span[color], b[color], i[color], strong[color], em[color], small[color], sub[color], sup[color]'
})
export class Typography extends Ion {