coblocks icon indicating copy to clipboard operation
coblocks copied to clipboard

Set the active image class in the carousel

Open EvanHerman opened this issue 3 years ago • 0 comments

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

image

Ater

image

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

EvanHerman avatar Aug 04 '22 15:08 EvanHerman