You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs(chore): Standard HTML attributes note (#2289)
* refactored to include MDN and htmlElement in each component's frontmatter
* escape < and >
* change MDN to mdnUrl for consistency with frontmatter naming
* modify getFrontmatter to grab all frontmatter
* fixed small bug
* added error handling for fs.readFileSync
* refactored getFrontmatter to handle error
Co-authored-by: Joe Buono <[email protected]>
* @todo After Marketing Launch 2022-06, to update the note under the Props Heading to specify the HTML element's name and MDN link. Ticket: https://app.asana.com/0/1201736086077838/1202477702049308/f
{/* This file is autogenerated by "docs/scripts/generate-props-tables.ts" script. */}
@@ -92,7 +89,11 @@ ${tableAndExpanders.join('')}
92
89
93
90
See [Style Props](/react/theming/style-props) for all supported style and layout properties.
94
91
95
-
The ${displayName} component will accept any of the standard HTML attributes that a HTML element accepts. Standard element attributes can be found in the <Link href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element" isExternal={true}>MDN Documentation</Link>.
92
+
${displayName} will also accept any of the standard HTML attributes that a <code>\\<${
93
+
htmlElement||'div'
94
+
}\\></code> element accepts, which can be found in the <Link href="${
See [Style Props](/react/theming/style-props) for all supported style and layout properties.
384
384
385
-
The Alert component will accept any of the standard HTML attributes that a HTML element accepts. Standard element attributes can be found in the <Linkhref="https://developer.mozilla.org/en-US/docs/Web/HTML/Element"isExternal={true}>MDN Documentation</Link>.
385
+
Alert will also accept any of the standard HTML attributes that a <code>\<div\></code> element accepts, which can be found in the <Linkhref="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/div"isExternal>MDN Documentation</Link>.
See [Style Props](/react/theming/style-props) for all supported style and layout properties.
264
264
265
-
The Badge component will accept any of the standard HTML attributes that a HTML element accepts. Standard element attributes can be found in the <Linkhref="https://developer.mozilla.org/en-US/docs/Web/HTML/Element"isExternal={true}>MDN Documentation</Link>.
265
+
Badge will also accept any of the standard HTML attributes that a <code>\<span\></code> element accepts, which can be found in the <Linkhref="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/span"isExternal>MDN Documentation</Link>.
See [Style Props](/react/theming/style-props) for all supported style and layout properties.
494
494
495
-
The Button component will accept any of the standard HTML attributes that a HTML element accepts. Standard element attributes can be found in the <Linkhref="https://developer.mozilla.org/en-US/docs/Web/HTML/Element"isExternal={true}>MDN Documentation</Link>.
495
+
Button will also accept any of the standard HTML attributes that a <code>\<button\></code> element accepts, which can be found in the <Linkhref="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button"isExternal>MDN Documentation</Link>.
0 commit comments