Commit acfaaa7 1 parent 0a6b8ea commit acfaaa7 Copy full SHA for acfaaa7
File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,7 @@ class SnackbarItem extends Component {
69
69
action : singleAction || singleContentProps . action || contentAction || action ,
70
70
} ;
71
71
72
+ const ariaDescribedby = contentProps [ 'aria-describedby' ] || 'client-snackbar' ;
72
73
const anchOrigin = singleSnackProps . anchorOrigin || anchorOrigin ;
73
74
74
75
let finalAction = contentProps . action ;
@@ -108,9 +109,9 @@ class SnackbarItem extends Component {
108
109
className ,
109
110
) }
110
111
{ ...contentProps }
111
- aria-describedby = "client-snackbar"
112
+ aria-describedby = { ariaDescribedby }
112
113
message = { (
113
- < span id = "client-snackbar" className = { classes . message } >
114
+ < span id = { ariaDescribedby } className = { classes . message } >
114
115
{ ! hideIconVariant ? icon : null }
115
116
{ snack . message }
116
117
</ span >
You can’t perform that action at this time.
0 commit comments