fix(anchor): add proper styling, support for colors, and basic test

fixes #14777
This commit is contained in:
Brandy Carney
2018-07-16 12:57:55 -04:00
parent 9d0d9bf3d2
commit 1dbf5bbb35
5 changed files with 120 additions and 10 deletions

View File

@ -504,6 +504,10 @@ declare global {
namespace StencilComponents {
interface IonAnchor {
/**
* The color to use for the anchor.
*/
'color': Color;
/**
* Contains a URL or a URL fragment that the hyperlink points to. If this property is set, an anchor tag will be rendered.
*/
@ -534,6 +538,10 @@ declare global {
}
namespace JSXElements {
export interface IonAnchorAttributes extends HTMLAttributes {
/**
* The color to use for the anchor.
*/
'color'?: Color;
/**
* Contains a URL or a URL fragment that the hyperlink points to. If this property is set, an anchor tag will be rendered.
*/