Visually hidden class functionality used
2 open threads
Closes #3442931
Merge request reports
Activity
60 60 newState ? 'expanded' : 'collapsed', 61 61 ); 62 62 63 const toolbarButtonLabels = document.querySelectorAll( changed this line in version 2 of the diff
60 60 newState ? 'expanded' : 'collapsed', 61 61 ); 62 62 63 const toolbarButtonLabels = document.querySelectorAll( 64 '.toolbar-button__label', 65 ); 66 if (toolbarButtonLabels.length > 0) { you don't have to check length here. if length === 0 it will be empty NodeList
https://developer.mozilla.org/en-US/docs/Web/API/Document/querySelectorAll#return_value
forEach will do nothing in this case.
changed this line in version 2 of the diff
added 1 commit
- 238fbc9e - Updated the selector postion and conditioning
Please register or sign in to reply