File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ Button.propTypes = {
59
59
60
60
### サードパーティの PropTypes における誤検知を修正する
61
61
62
- あなたがサードパーティ製 PropTypes の作者で、利用者に既存の React PropTypes をラップさせる場合、ライブラリがこの警告を発生させるのを利用者は見かけるようになるでしょう 。
62
+ あなたがサードパーティ製 PropTypes の作者で、利用者に既存の React PropTypes をラップさせる場合、ライブラリがこの警告を発生させるのを利用者は目にするようになるでしょう 。
63
63
これは手動によるPropTypesの呼び出しを[ 検知するために渡す最後尾の引数 ` secret ` ] ( https://github.com/facebook/react/pull/7132 ) を React が確認できないために起こります。
64
64
65
65
以下に修正方法を示します。例として使用しているのは [ react-bootstrap/react-prop-types] ( https://github.com/react-bootstrap/react-prop-types/blob/0d1cd3a49a93e513325e3258b28a82ce7d38e690/src/deprecated.js ) にある ` deprecated ` です。現時点での実装では単に引数として ` props ` 、 ` propName ` 、そして ` componentName ` を渡しているだけです。
Original file line number Diff line number Diff line change @@ -3,7 +3,8 @@ title: Invalid ARIA Prop Warning
3
3
layout : single
4
4
permalink : warnings/invalid-aria-prop.html
5
5
---
6
- 「無効なARIA Props」警告 (invalid-aria-prop) は、Web Accessibility Initiative (WAI) Accessible Rich Internet Application (ARIA) の[ 標準仕様] ( https://www.w3.org/TR/wai-aria-1.1/#states_and_properties ) に無い aria-* プロパティで DOM 要素をレンダリングしようとした場合に発生します。
6
+
7
+ 「無効な ARIA Props」警告 (invalid-aria-prop) は、Web Accessibility Initiative (WAI) Accessible Rich Internet Application (ARIA) の[ 標準仕様] ( https://www.w3.org/TR/wai-aria-1.1/#states_and_properties ) に無い aria-* プロパティで DOM 要素をレンダリングしようとした場合に発生します。
7
8
8
9
1 . 使用した props が標準仕様に準拠しているはずのものであるなら、綴りをよく確認してください。 ` aria-labelledby ` や ` aria-activedescendant ` の綴り間違いはありがちです。
9
10
You can’t perform that action at this time.
0 commit comments