mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 20:33:32 +08:00
fix(anchor): add proper styling, support for colors, and basic test
fixes #14777
This commit is contained in:
8
core/src/components.d.ts
vendored
8
core/src/components.d.ts
vendored
@ -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.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user