Download & Extend

Provide CSS classes to indicate the status of the pause button

Project:Views Slideshow
Version:7.x-3.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

It would be nice for theming if there were CSS classes on the pause button that indicate the current active state (playing or paused). This would be handy if the buttons are themed with play/pause images.

Comments

#1

Title:Provide CSS classes for pause button that toggle on click» Provide CSS classes to indicate the status of the pause button

This simple patch adds the class 'playing' or 'paused' to the button. My javascript-fu is not exactly stellar, so I'd be glad if someone could give it a look.

AttachmentSize
1322780-1-views_slideshow-pause_button_classes.patch 1.57 KB

#2

Status:active» needs review

#1353994: Add "paused" class to controls for theming marked as duplicate of this issue.

#3

Status:needs review» reviewed & tested by the community

Tested and the code looks fine.

#4

I can also verify that this works. I'd love to see this in dev.

#5

Worked for me too. Thanks.

#6

Patch works for me. Would be good to see this in the release.

#7

Status:reviewed & tested by the community» closed (fixed)

Appears there's a fix for this in the current dev using classes "views-slideshow-controls-text-status-pause" and "views-slideshow-controls-text-status-play".

#8