coblocks
coblocks copied to clipboard
Set the active image class in the carousel
Description
Adds the proper class (is-active)to the current image being displayed in the thumbnail gallery.
This work was pulled from the PR https://github.com/godaddy-wordpress/coblocks/pull/2411 . The other fixes in that PR may not be valid anymore, so I moved the one fix here into its own PR.
Screenshots
Before
Ater
Types of changes
Bug fix (non-breaking change which fixes an issue)
How has this been tested?
Manually tested by adding the carousel block to a page and ensuring the proper class gets added to the active image.
Checklist:
- [x] My code is tested
- [x] My code follows accessibility standards