Skip to content

Commit

Permalink
feat(link): add color attribute (#5)
Browse files Browse the repository at this point in the history
The color attribute is used together with the `mask-icon` `rel`: https://html.spec.whatwg.org/multipage/semantics.html#attr-link-color

If you agree about this change, would you please add a `hacktoberfest-accepted` label to this PR? :)
  • Loading branch information
dargmuesli committed Oct 13, 2022
1 parent ee9d51a commit 0a915d0
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions packages/schema/src/link.ts
Expand Up @@ -52,6 +52,17 @@ export interface Link extends HttpEventAttributes {
'track' |
'video' |
'worker'
/**
* The color attribute is used with the mask-icon link type.
* The attribute must only be specified on link elements that have a rel attribute
* that contains the mask-icon keyword.
* The value must be a string that matches the CSS <color> production,
* defining a suggested color that user agents can use to customize the display
* of the icon that the user sees when they pin your site.
*
* @see https://html.spec.whatwg.org/multipage/semantics.html#attr-link-color
*/
color?: string
/**
* This enumerated attribute indicates whether CORS must be used when fetching the resource.
* CORS-enabled images can be reused in the <canvas> element without being tainted.
Expand Down

0 comments on commit 0a915d0

Please sign in to comment.