Skip to content

Commit

Permalink
fix(education-notice/tips): added attributes to marko-tag.json
Browse files Browse the repository at this point in the history
  • Loading branch information
agliga committed Mar 20, 2024
1 parent 036f328 commit ee86979
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/components/ebay-education-notice/examples/base.marko
Expand Up @@ -2,13 +2,10 @@ import type { Input as EducationNoticeInput } from "<ebay-education-notice>"
export type Input = EducationNoticeInput;

<ebay-education-notice ...input>
<@title>
<div>Educaiton title</div>
</@title>
<p>
<strong>Error:</strong> Please take another look at the following:
</p>
<p>
<a href="#">Card number</a>,
<a href="#">Expiration date</a>
&amp;
<a href="#">Security code</a>
This is some education infromation
</p>
</ebay-education-notice>
15 changes: 15 additions & 0 deletions src/components/ebay-education-notice/marko-tag.json
Expand Up @@ -9,7 +9,22 @@
"enum": ["attention", "confirmation", "information"]
},
"@icon": "string",
"@education-icon <educationIcon>": {
"attribute-groups": ["html-attributes"],
"@*": {
"targetProperty": null,
"type": "expression"
},
"@html-attributes": "expression"
},
"@variant": {
"enum": ["none", "prominent"]
},
"@icon-variant": {
"enum": ["none", "prominent"]
},
"@a11y-text": "string",
"@a11y-dismiss-text": "string",
"@a11y-role-description": "string",
"@title <title>": {
"attribute-groups": ["html-attributes"],
Expand Down
3 changes: 3 additions & 0 deletions src/components/ebay-infotip/marko-tag.json
Expand Up @@ -42,6 +42,9 @@
},
"@aria-label": "string",
"@variant": "string",
"@no-shift": "boolean",
"@not-inline": "boolean",
"@no-flip": "boolean",
"@a11y-close-button-text": "string",
"@icon <icon>": {
"attribute-groups": ["html-attributes"],
Expand Down
3 changes: 3 additions & 0 deletions src/components/ebay-tooltip/marko-tag.json
Expand Up @@ -37,6 +37,9 @@
"left-end"
]
},
"@no-shift": "boolean",
"@not-inline": "boolean",
"@no-flip": "boolean",
"@no-hover": "boolean",
"@heading <heading>": {
"attribute-groups": ["html-attributes"],
Expand Down
3 changes: 3 additions & 0 deletions src/components/ebay-tourtip/marko-tag.json
Expand Up @@ -37,6 +37,9 @@
"left-end"
]
},
"@no-shift": "boolean",
"@not-inline": "boolean",
"@no-flip": "boolean",
"@a11y-close-text": "string",
"@host <host>": {
"attribute-groups": ["html-attributes"],
Expand Down

0 comments on commit ee86979

Please sign in to comment.