Ticket #3673 (closed feature: fixed)

Opened 5 years ago

Last modified 2 years ago

Widget: Add methods to abstract focus and hover classes

Reported by: scott.gonzalez Owned by: scott.gonzalez
Priority: major Milestone: 1.9.0
Component: ui.widget Version: 1.6rc2
Keywords: Cc:
Blocking: Blocked by:

Description

Many (all?) plugins now need to add classes on hover to take advantage of the new CSS framework. To reduce code duplication, we should add a hoverClass method to ui.core.js.

$.fn.hoverClass = function(classNames) {
	return this.hover(
		function() {
			$(this).addClass(classNames);
		},
		function() {
			$(this).removeClass(classNames);
		});
};

Change History

comment:1 Changed 5 years ago by scott.gonzalez

  • Owner set to scott.gonzalez
  • Status changed from new to accepted
  • Milestone changed from TBD to 1.6

comment:2 Changed 5 years ago by scott.gonzalez

Also add .focusClass()

See  Google group discussion.

comment:3 Changed 4 years ago by scott.gonzalez

  • Milestone changed from 1.6 to 1.next

comment:4 Changed 2 years ago by scott.gonzalez

  • Status changed from accepted to new
  • Summary changed from Add hoverClass method to Widget: Add methods to abstract focus and hover classes
  • Component changed from ui.core to ui.widget
  • Milestone changed from 1.next to 1.9

comment:5 Changed 2 years ago by scott.gonzalez

  • Status changed from new to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.