Skip to content

Commit f1d9368

Browse files
alan-agius4manucorporat
authored andcommitted
fix(ion-button): ion-button on a tag should be excluded (#8250)
fixes #8249
1 parent 5fb53fc commit f1d9368

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/typography/typography.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { Ion } from '../ion';
99
* Select all of the HTML text elements with the color attribute to apply the text-color class.
1010
*/
1111
@Directive({
12-
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]'
12+
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]'
1313
})
1414
export class Typography extends Ion {
1515

0 commit comments

Comments
 (0)