fix: clarify localization note in SingleDatePicker documentation regarding screen reader impact
This commit is contained in:
parent
c758deda1f
commit
7a76aecb30
|
@ -26,7 +26,7 @@ interface Props {
|
||||||
* function that will be called when a date is selected inside the panel.
|
* function that will be called when a date is selected inside the panel.
|
||||||
* @param {string} props.localization - The language code that will be used to localize the panel.
|
* @param {string} props.localization - The language code that will be used to localize the panel.
|
||||||
* Accept standard ISO 639-1 language code, such as 'zh-CN', 'en-US', 'ja-JP', etc. Default to the
|
* Accept standard ISO 639-1 language code, such as 'zh-CN', 'en-US', 'ja-JP', etc. Default to the
|
||||||
* language of the user’s browser.
|
* language of the user’s browser. Note that it will not effect to the screen reader.
|
||||||
*/
|
*/
|
||||||
export default ({ value, onSelect, localization }: Props) => {
|
export default ({ value, onSelect, localization }: Props) => {
|
||||||
const [currentMonth, setCurrentMonth] = useState(new Date().getMonth())
|
const [currentMonth, setCurrentMonth] = useState(new Date().getMonth())
|
||||||
|
|
Loading…
Reference in New Issue
Block a user