📝 [RFC] Support aria-* in closable #47188
Closed
kiner-tang
started this conversation in
RFCs
Replies: 1 comment 5 replies
-
@zombieJ @MadCcc 我记得文档之前是故意把 |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
Sometimes, we need to add
aria-*
attributes to the close button of closable components to support accessibility. Therefore, we need to expand theclosable
type to support the configuration ofaria-*
attributes.Motivation
As mentioned in allow change close aria-label we need to support the configuration of
aria-*
attributes for the close button.The components that need to be supported are as follows:
Alert
feat: Alert support aria-* in closable #47474Drawer
feat: Drawer support aria in closable #47543Message
Modal
feat: Modal support aria-* in closable #47650Notification
feat: Notification support aria-* in closable #47710Tag
feat: Tag support aria-* in closable #47678Tour
feat: Tour support aria-* in closable react-component/tour#52Support for static methods:
Message
Modal
Notification
Some components need to be linked to transform
rc-*
, such as:Modal
.API
Type:
closable: boolean | { [`aria-${string}`]: string, icon?: React.ReactNode }
Basic Example
Beta Was this translation helpful? Give feedback.
All reactions