From 02670465560851b6adabc58b5fb477cdf8ed6cf5 Mon Sep 17 00:00:00 2001 From: Martin Bohal Date: Wed, 24 Jan 2024 19:30:42 +0100 Subject: [PATCH] fixup! Omit link to legacy list of React synthetic events in component documentation --- src/components/Alert/README.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/components/Alert/README.md b/src/components/Alert/README.md index c3e2c4aa..b7380b62 100644 --- a/src/components/Alert/README.md +++ b/src/components/Alert/README.md @@ -172,11 +172,12 @@ React.createElement(() => { In addition to the options below in the [component's API](#api) section, you can specify **any HTML attribute you like.** All attributes that don't interfere -with the API are forwarded to the root `
` HTML element. This enables making -the component interactive and helps to improve its accessibility. +with the API of the React component are forwarded to the root `
` HTML +element. This enables making the component interactive and helps to improve +its accessibility. -👉 Refer to the MDN reference for the full list of supported attributes of the -[div] element. +👉 For the full list of supported attributes refer to [div HTML element attributes] +and [React common props]. ## API @@ -210,4 +211,5 @@ Where: - `` is one of `color` (color of text), `foreground-color` (color of border, icon, links, and emphasis), or `background-color`. -[div]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/div#attributes +[div HTML element attributes]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/div#attributes +[React common props]: https://react.dev/reference/react-dom/components/common#common-props